import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('whitelist_entries')
export class WhitelistEntryEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'varchar', length: 144 }) socialclub_name: string;
    @Column({ type: 'varchar', length: 144 }) note: string;
    @Column({ type: 'datetime', nullable: true }) last_used: string;
    @Column({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }) created: string;
    @Column({ type: 'int' }) created_by: number;
}
