crud development
This commit is contained in:
parent
454cda29e5
commit
9da7f47cf6
7 changed files with 393 additions and 0 deletions
34
src/entities/Development.ts
Normal file
34
src/entities/Development.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import { Entity, Column, ManyToOne, JoinColumn, OneToOne, OneToMany } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("development")
|
||||
export class Development extends EntityBase {
|
||||
@Column({
|
||||
comment: "ชื่อโครงการ/กิจกรรม/หลักสูตร",
|
||||
length: 255,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ปีงบประมาณ",
|
||||
})
|
||||
year: number;
|
||||
|
||||
}
|
||||
|
||||
export class CreateDevelopment {
|
||||
@Column()
|
||||
name: string;
|
||||
|
||||
@Column()
|
||||
year: number;
|
||||
}
|
||||
|
||||
export class UpdateDevelopment {
|
||||
@Column()
|
||||
name: string;
|
||||
|
||||
@Column()
|
||||
year: number;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue