ownership
This commit is contained in:
parent
72fb6fbc20
commit
e2b46becf0
13 changed files with 79 additions and 13 deletions
|
@ -22,6 +22,9 @@ export class user {
|
|||
@Column({ type: "varchar", length: 255 })
|
||||
secret: string;
|
||||
|
||||
@Column({ type: "boolean", default: false })
|
||||
isOwner: boolean;
|
||||
|
||||
@ManyToMany(() => role, (role) => role.users, {
|
||||
nullable: false,
|
||||
onDelete: "CASCADE",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue