This commit is contained in:
fro1991
2026-01-01 17:03:18 +07:00
parent 0fb3b2225e
commit beb05f0e7c

View File

@ -1,16 +1,8 @@
import { import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
DeleteDateColumn,
} from "typeorm";
import { Status } from "../../types/status"; import { Status } from "../../types/status";
@Entity("hrms_shifts", { schema: "hrms" }) @Entity("hrms_shifts", { schema: "hrms" })
export class HrmsShift { export class HrmsShift {
@PrimaryGeneratedColumn("uuid") @PrimaryGeneratedColumn("uuid")
id: string; id: string;
@ -32,6 +24,30 @@ export class HrmsShift {
}) })
in_end_time: string; in_end_time: string;
@Column({
type: "time",
nullable: true,
})
break_out_start_time: string; // HH:mm:ss
@Column({
type: "time",
nullable: true,
})
break_out_end_time: string;
@Column({
type: "time",
nullable: true,
})
break_in_start_time: string; // HH:mm:ss
@Column({
type: "time",
nullable: true,
})
break_in_end_time: string;
@Column({ @Column({
type: "time", type: "time",
nullable: false, nullable: false,