22 lines
686 B
TypeScript
22 lines
686 B
TypeScript
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
import { TimestampedEntity } from './timestamped.entity';
|
|
|
|
@Entity({ name: 'inspection_business_calendar_days' })
|
|
@Index('uq_inspection_business_calendar_day', ['date'], { unique: true })
|
|
export class InspectionBusinessCalendarDay extends TimestampedEntity {
|
|
@PrimaryGeneratedColumn('uuid')
|
|
id!: string;
|
|
|
|
@Column({ type: 'date' })
|
|
date!: string;
|
|
|
|
@Column({ name: 'is_business_day', type: 'boolean', default: false })
|
|
isBusinessDay!: boolean;
|
|
|
|
@Column({ type: 'varchar', length: 200 })
|
|
label!: string;
|
|
|
|
@Column({ name: 'updated_by', type: 'uuid', nullable: true })
|
|
updatedBy!: string | null;
|
|
}
|