add profilio

This commit is contained in:
Kittapath 2024-06-30 20:50:39 +07:00
parent 28bb5e2246
commit 72a045fcfc
4 changed files with 214 additions and 0 deletions

25
src/entities/Portfolio.ts Normal file
View file

@ -0,0 +1,25 @@
import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("portfolio")
export class Portfolio extends EntityBase {
@Column({
nullable: true,
comment: "ชื่อเอกสาร/ผลงาน",
default: null,
})
name: string;
@Column({
nullable: true,
comment: "รายละเอียดเอกสาร/ผลงาน",
default: null,
})
detail: string;
}
export class CreatePortfolio {
@Column()
name: string;
@Column()
detail: string | null;
}