diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-05-15 09:12:28 +0300 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-05-15 09:12:28 +0300 |
commit | 41564c79561d68f00c37d3ca980bbd8e6405160d (patch) | |
tree | 06aa01cc15c9ee758829283efddd5f350fddecf6 /util | |
parent | Merge branch 'master' of https://github.com/fosscord/fosscord-server (diff) | |
download | server-41564c79561d68f00c37d3ca980bbd8e6405160d.tar.xz |
user groups
Diffstat (limited to 'util')
-rw-r--r-- | util/src/entities/Group.ts | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/util/src/entities/Group.ts b/util/src/entities/Group.ts new file mode 100644 index 00000000..b24d38cf --- /dev/null +++ b/util/src/entities/Group.ts @@ -0,0 +1,33 @@ +import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; + +import { BaseClass } from "./BaseClass"; + +@Entity("groups") +export class UserGroup extends BaseClass { + @Column({ nullable: true }) + parent?: BigInt; + + @Column() + color: number; + + @Column() + hoist: boolean; + + @Column() + mentionable: boolean; + + @Column() + name: string; + + @Column() + rights: BigInt; + + @Column() + position: number; + + @Column({ nullable: true }) + icon: BigInt; + + @Column({ nullable: true }) + unicode_emoji: BigInt; +} |