17 lines
309 B
TypeScript
17 lines
309 B
TypeScript
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity()
|
|
export class User {
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@Column({ unique: true, nullable: false })
|
|
email: string;
|
|
|
|
@Column({ nullable: false })
|
|
name: string;
|
|
|
|
@Column({ nullable: false })
|
|
password_hash: string;
|
|
}
|