mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-21 04:40:57 +00:00
user groups
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user