mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 23:25:02 +00:00
Add SelfGrantableRoles
This commit is contained in:
parent
43f7e74dbe
commit
bd97255f6c
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