import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn } from 'typeorm'

@Entity()
export class SmsRecord {
    @PrimaryGeneratedColumn()
    id: number

    @Column()
    phone: string

    @Column({ length: 10 })
    code: string

    @Column()
    expireAt: Date

    @CreateDateColumn()
    createdAt: Date
}
