LocChat/server/entities/user.entity.ts
2021-11-20 18:18:58 -07:00

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;
}