start project

This commit is contained in:
Warunee Tamkoo 2024-09-05 13:59:43 +07:00
commit 0703810fa3
62 changed files with 12665 additions and 0 deletions

View file

@ -0,0 +1,46 @@
import { Entity, Column, ManyToOne, JoinColumn } from "typeorm";
import { EntityBase } from "./base/Base";
import { Assign } from "./Assign";
@Entity("assignOutput")
export class AssignOutput extends EntityBase {
@Column({
primary: true,
type: "int",
comment: "Runnig number",
})
id: number;
@Column({
primary: true,
nullable: false,
type: "uuid",
comment: "Id ของแบบมอบหมายงาน",
})
assign_id: string;
@Column({
type: "text",
nullable: false,
comment: "ผลผลิตของงานที่คาดหวัง",
})
output_desc: string;
@Column({
type: "text",
nullable: false,
comment: "ตัวชี้วัดความสําเร็จของงาน",
})
indicator_desc: string;
@ManyToOne(() => Assign, (assign: Assign) => assign.outputs)
@JoinColumn({ name: "assign_id" })
assign: Assign;
}
export class CreateAssignOutput {
output_desc: string;
indicator_desc: string;
}
export type UpdateAssignOutput = Partial<CreateAssignOutput>;