2024-06-30 20:50:39 +07:00
|
|
|
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({
|
2024-07-01 11:42:34 +07:00
|
|
|
type: "longtext",
|
2024-06-30 20:50:39 +07:00
|
|
|
nullable: true,
|
|
|
|
|
comment: "รายละเอียดเอกสาร/ผลงาน",
|
|
|
|
|
default: null,
|
|
|
|
|
})
|
|
|
|
|
detail: string;
|
|
|
|
|
}
|
|
|
|
|
export class CreatePortfolio {
|
|
|
|
|
@Column()
|
|
|
|
|
name: string;
|
|
|
|
|
@Column()
|
|
|
|
|
detail: string | null;
|
|
|
|
|
}
|