crud development

This commit is contained in:
Bright 2024-04-02 17:53:45 +07:00
parent 454cda29e5
commit 9da7f47cf6
7 changed files with 393 additions and 0 deletions

View 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;
}