forked from yoone/WEB
1
0
Fork 0
WEB/src/entity/auth_code.ts

14 lines
236 B
TypeScript

import { Entity, Column, PrimaryColumn } from 'typeorm';
@Entity('auth_code')
export class AuthCode {
@PrimaryColumn({ length: 255 })
device_id: string;
@Column({ length: 10 })
code: string;
@Column()
expires_at: Date;
}