add profilio
This commit is contained in:
parent
28bb5e2246
commit
72a045fcfc
4 changed files with 214 additions and 0 deletions
25
src/entities/Portfolio.ts
Normal file
25
src/entities/Portfolio.ts
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue