ff-admin-server/src/entity/user.ts

24 lines
519 B
TypeScript
Raw Normal View History

2024-08-25 13:36:19 +02:00
import { Column, Entity, PrimaryColumn } from "typeorm";
import { refresh } from "./refresh";
@Entity()
export class user {
@PrimaryColumn({ generated: "increment", type: "int" })
id: number;
@Column({ type: "varchar", length: 255 })
mail: string;
@Column({ type: "varchar", length: 255 })
username: string;
2024-08-25 13:36:19 +02:00
@Column({ type: "varchar", length: 255 })
firstname: string;
@Column({ type: "varchar", length: 255 })
lastname: string;
@Column({ type: "varchar", length: 255 })
secret: string;
}