25 lines
964 B
TypeScript
25 lines
964 B
TypeScript
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
import { InspectionDeadlineDayType } from './inspection-act.entity';
|
|
import { TimestampedEntity } from './timestamped.entity';
|
|
|
|
@Entity({ name: 'inspection_deadline_policies' })
|
|
export class InspectionDeadlinePolicy extends TimestampedEntity {
|
|
@PrimaryGeneratedColumn('uuid')
|
|
id!: string;
|
|
|
|
@Column({ name: 'urgent_days', type: 'integer', default: 5 })
|
|
urgentDays!: number;
|
|
|
|
@Column({ name: 'urgent_day_type', type: 'varchar', length: 24, default: InspectionDeadlineDayType.BUSINESS })
|
|
urgentDayType!: InspectionDeadlineDayType;
|
|
|
|
@Column({ name: 'non_urgent_days', type: 'integer', default: 10 })
|
|
nonUrgentDays!: number;
|
|
|
|
@Column({ name: 'non_urgent_day_type', type: 'varchar', length: 24, default: InspectionDeadlineDayType.BUSINESS })
|
|
nonUrgentDayType!: InspectionDeadlineDayType;
|
|
|
|
@Column({ name: 'updated_by', type: 'uuid', nullable: true })
|
|
updatedBy!: string | null;
|
|
}
|