import { Column, Entity, JoinColumn, ManyToOne, OneToOne, PrimaryGeneratedColumn } from 'typeorm';

@Entity('property_security_notifications')
export class PropertySecurityNotifEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'int', nullable: false }) property_id: number;
    @Column({ type: 'int', nullable: true }) system_id: number | null;
    @Column({ type: 'varchar', length: 255 }) text: string;
    @Column({ type: 'int', nullable: true }) character_id: number;
    @Column({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }) created: Date;
}
