hrms-api-org/src/entities/OrgRevision.ts

45 lines
799 B
TypeScript
Raw Normal View History

2024-01-24 16:08:34 +07:00
import { Entity, Column, ManyToOne, JoinColumn, OneToOne } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("orgRevision")
export class OrgRevision extends EntityBase {
@Column({
comment: "",
length: 40,
default: "00000000-0000-0000-0000-000000000000",
})
orgRevisionId: string;
@Column({
comment: "",
length: 255,
default: "string",
})
orgRevisionName: string;
@Column({
nullable: true,
comment: "",
default: false
2024-01-24 16:08:34 +07:00
})
orgRevisionIsCurrent: boolean;
2024-01-24 16:08:34 +07:00
@Column({
nullable: true,
type: "datetime",
comment: "",
})
orgRevisionCreatedAt: Date;
@Column({
nullable: true,
comment: "",
default: false
2024-01-24 16:08:34 +07:00
})
orgRevisionIsDraft: boolean;
2024-01-26 10:13:07 +07:00
2024-01-24 16:08:34 +07:00
}
export type UpdateOrgRevision = Partial<OrgRevision>;