start project
This commit is contained in:
commit
0703810fa3
62 changed files with 12665 additions and 0 deletions
46
src/entities/AssignOutput.ts
Normal file
46
src/entities/AssignOutput.ts
Normal 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>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue