chore: import DH V2 D5.6.4 production baseline
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
||||
|
||||
export enum InspectionResponsibleAttendanceStatus {
|
||||
PRESENT = 'PRESENT',
|
||||
ABSENT = 'ABSENT',
|
||||
}
|
||||
|
||||
export enum InspectionResponsibleDocumentType {
|
||||
DNI = 'DNI',
|
||||
CUIL = 'CUIL',
|
||||
PASSPORT = 'PASSPORT',
|
||||
OTHER = 'OTHER',
|
||||
}
|
||||
|
||||
@Entity({ name: 'inspection_act_responsibles' })
|
||||
export class InspectionActResponsible {
|
||||
@PrimaryColumn({ name: 'act_id', type: 'uuid' })
|
||||
actId!: string;
|
||||
|
||||
@Column({ name: 'attendance_status', type: 'varchar', length: 20 })
|
||||
attendanceStatus!: InspectionResponsibleAttendanceStatus;
|
||||
|
||||
@Column({ name: 'full_name', type: 'varchar', length: 200, nullable: true })
|
||||
fullName!: string | null;
|
||||
|
||||
@Column({ name: 'document_type', type: 'varchar', length: 20, nullable: true })
|
||||
documentType!: InspectionResponsibleDocumentType | null;
|
||||
|
||||
@Column({ name: 'document_number', type: 'varchar', length: 40, nullable: true })
|
||||
documentNumber!: string | null;
|
||||
|
||||
@Column({ type: 'varchar', length: 200, nullable: true })
|
||||
position!: string | null;
|
||||
|
||||
@Column({ type: 'varchar', length: 320, nullable: true })
|
||||
email!: string | null;
|
||||
|
||||
@Column({ type: 'varchar', length: 50, nullable: true })
|
||||
phone!: string | null;
|
||||
|
||||
@Column({ name: 'absence_reason', type: 'text', nullable: true })
|
||||
absenceReason!: string | null;
|
||||
|
||||
@Column({ name: 'updated_by', type: 'uuid', nullable: true })
|
||||
updatedBy!: string | null;
|
||||
|
||||
@Column({ name: 'created_at', type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP' })
|
||||
createdAt!: Date;
|
||||
|
||||
@Column({ name: 'updated_at', type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP' })
|
||||
updatedAt!: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user