LocChat/server/entities/user.entity.ts
2021-11-16 19:14:46 -07:00

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