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