mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
23 lines
406 B
TypeScript
23 lines
406 B
TypeScript
import {UserDTO, UserRoles} from "../../../../common/entities/UserDTO";
|
|
import {Entity, Column, PrimaryGeneratedColumn} from "typeorm";
|
|
|
|
@Entity()
|
|
export class UserEntity implements UserDTO {
|
|
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@Column({
|
|
length: 500
|
|
})
|
|
name: string;
|
|
|
|
@Column({
|
|
length: 500
|
|
})
|
|
password: string;
|
|
|
|
@Column("int")
|
|
role: UserRoles;
|
|
|
|
} |