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

@Entity('emergency_alerts')
export class EmergencyAlertsEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ nullable: false, type: 'varchar', length: 256 }) content: string;
    @Column({ nullable: false, type: 'varchar', length: 32 }) created_by: string;
    @Column({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP()' }) created: Date;
    @Column({ nullable: false, type: 'varchar', length: 32 }) agency: string;
}
