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

@Entity('character_cache')
export class CharacterCacheEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'varchar', length: 24, unique: true }) name: string;
    @Column() gender: 0 | 1;
    @Column({ type: 'varchar', length: 10 }) date_of_birth: string;
    @Column({ type: 'int', nullable: true }) ssn: number | null;
    @Column({ type: 'text', nullable: true }) appearance: string | null;
    @Column({ type: 'int', nullable: true }) jail_id: number | null;
    @Column({ type: 'int', nullable: true }) jail_time: number | null;
    @Column({ type: 'int', nullable: true }) prison_minutes: number | null;
    @Column({ type: 'datetime', nullable: true }) prison_until: Date | null;
    @Column({ type: 'int', nullable: true }) prison_seg_minutes: number | null;
}
