Add SelfGrantableRoles
This commit is contained in:
parent
8cb382979b
commit
457d57fb8c
6 changed files with 368 additions and 5 deletions
16
src/data/entities/SelfGrantableRole.ts
Normal file
16
src/data/entities/SelfGrantableRole.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { Entity, Column, PrimaryColumn } from "typeorm";
|
||||
|
||||
@Entity("self_grantable_roles")
|
||||
export class SelfGrantableRole {
|
||||
@Column()
|
||||
@PrimaryColumn()
|
||||
id: number;
|
||||
|
||||
@Column() guild_id: string;
|
||||
|
||||
@Column() channel_id: string;
|
||||
|
||||
@Column() role_id: string;
|
||||
|
||||
@Column("simple-array") aliases: string[];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue