hrms-api-development/src/entities/Portfolio.ts

27 lines
563 B
TypeScript
Raw Normal View History

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({
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;
}