add api key
This commit is contained in:
parent
94ea64247f
commit
f111132184
13 changed files with 291 additions and 4666 deletions
|
|
@ -21,6 +21,54 @@ export class ApiKey extends EntityBase {
|
|||
})
|
||||
keyApi: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "accessType",
|
||||
length: 40,
|
||||
default: null,
|
||||
})
|
||||
accessType: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "dnaRootId",
|
||||
length: 40,
|
||||
default: null,
|
||||
})
|
||||
dnaRootId: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "dnaChild1Id",
|
||||
length: 40,
|
||||
default: null,
|
||||
})
|
||||
dnaChild1Id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "dnaChild2Id",
|
||||
length: 40,
|
||||
default: null,
|
||||
})
|
||||
dnaChild2Id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "dnaChild3Id",
|
||||
length: 40,
|
||||
default: null,
|
||||
})
|
||||
dnaChild3Id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "dnaChild4Id",
|
||||
length: 40,
|
||||
default: null,
|
||||
})
|
||||
dnaChild4Id: string;
|
||||
|
||||
@ManyToMany(() => ApiName, (apiName) => apiName.apiKeys)
|
||||
apiNames: ApiName[];
|
||||
|
||||
|
|
@ -34,4 +82,22 @@ export class CreateApiKey {
|
|||
|
||||
@Column()
|
||||
apiId: string[];
|
||||
|
||||
@Column()
|
||||
accessType?: string;
|
||||
|
||||
@Column()
|
||||
dnaRootId?: string;
|
||||
|
||||
@Column()
|
||||
dnaChild1Id?: string;
|
||||
|
||||
@Column()
|
||||
dnaChild2Id?: string;
|
||||
|
||||
@Column()
|
||||
dnaChild3Id?: string;
|
||||
|
||||
@Column()
|
||||
dnaChild4Id?: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue