LocChat/server/entities/user.entity.ts

16 lines
253 B
TypeScript
Raw Normal View History

2021-11-16 21:14:46 -05:00
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
email: string;
@Column()
name: string;
@Column()
password_hash: string;
}