update
This commit is contained in:
@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user