1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00
2017-10-19 12:08:07 -04:00

23 lines
404 B
TypeScript

import {UserDTO, UserRoles} from "../../../../common/entities/UserDTO";
import {Column, Entity, PrimaryGeneratedColumn} from "typeorm";
@Entity()
export class UserEntity implements UserDTO {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
@Column()
password: string;
@Column("smallint")
role: UserRoles;
@Column("text", {nullable: true})
permissions: string[];
}