สร้างโครงสร้าง
This commit is contained in:
parent
042422938c
commit
8184152ac0
16 changed files with 295 additions and 84 deletions
|
|
@ -4,12 +4,12 @@ import { OrgRoot } from "./OrgRoot";
|
|||
|
||||
@Entity("orgRevision")
|
||||
export class OrgRevision extends EntityBase {
|
||||
@Column({
|
||||
comment: "",
|
||||
length: 40,
|
||||
default: "00000000-0000-0000-0000-000000000000",
|
||||
})
|
||||
orgRevisionId: string;
|
||||
// @Column({
|
||||
// comment: "",
|
||||
// length: 40,
|
||||
// default: "00000000-0000-0000-0000-000000000000",
|
||||
// })
|
||||
// orgRevisionId: string;
|
||||
|
||||
@Column({
|
||||
comment: "",
|
||||
|
|
@ -21,7 +21,7 @@ export class OrgRevision extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
comment: "",
|
||||
default: false
|
||||
default: false,
|
||||
})
|
||||
orgRevisionIsCurrent: boolean;
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ export class OrgRevision extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
comment: "",
|
||||
default: false
|
||||
default: false,
|
||||
})
|
||||
orgRevisionIsDraft: boolean;
|
||||
|
||||
|
|
@ -43,5 +43,14 @@ export class OrgRevision extends EntityBase {
|
|||
orgRoots: OrgRoot[];
|
||||
}
|
||||
|
||||
export class CreateOrgRevision {
|
||||
@Column()
|
||||
orgRevisionName: string;
|
||||
|
||||
@Column()
|
||||
typeDraft: string;
|
||||
|
||||
@Column("uuid")
|
||||
orgRevisionId?: string;
|
||||
}
|
||||
export type UpdateOrgRevision = Partial<OrgRevision>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue