16 lines
253 B
TypeScript
16 lines
253 B
TypeScript
|
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
|
||
|
|
||
|
@Entity()
|
||
|
export class User {
|
||
|
@PrimaryGeneratedColumn()
|
||
|
id: number;
|
||
|
|
||
|
@Column()
|
||
|
email: string;
|
||
|
|
||
|
@Column()
|
||
|
name: string;
|
||
|
|
||
|
@Column()
|
||
|
password_hash: string;
|
||
|
}
|