1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

23 lines
404 B
TypeScript
Raw Normal View History

2016-12-27 16:09:47 +01:00
import {UserDTO, UserRoles} from "../../../../common/entities/UserDTO";
import {Table, Column, PrimaryGeneratedColumn} from "typeorm";
@Table()
export class UserEntity implements UserDTO {
@PrimaryGeneratedColumn()
id: number;
@Column({
length: 500
})
name: string;
@Column({
length: 500
})
password: string;
@Column("int")
role: UserRoles;
}