model OrgGroup
This commit is contained in:
parent
3c64d6b790
commit
89e68e5970
9 changed files with 655 additions and 3 deletions
42
src/entities/OrgRevision.ts
Normal file
42
src/entities/OrgRevision.ts
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
import { Entity, Column, ManyToOne, JoinColumn, OneToOne } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("orgRevision")
|
||||
export class OrgRevision extends EntityBase {
|
||||
@Column({
|
||||
comment: "",
|
||||
length: 40,
|
||||
default: "00000000-0000-0000-0000-000000000000",
|
||||
})
|
||||
orgRevisionId: string;
|
||||
|
||||
@Column({
|
||||
comment: "",
|
||||
length: 255,
|
||||
default: "string",
|
||||
})
|
||||
orgRevisionName: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "tinyint",
|
||||
comment: "",
|
||||
})
|
||||
orgRevisionIsCurrent: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
comment: "",
|
||||
})
|
||||
orgRevisionCreatedAt: Date;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "tinyint",
|
||||
comment: "",
|
||||
})
|
||||
orgRevisionIsDraft: number;
|
||||
}
|
||||
|
||||
export type UpdateOrgRevision = Partial<OrgRevision>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue