Large swathes of re-engineering
This commit is contained in:
17
src/utilties/storage/entities/DBUser.ts
Normal file
17
src/utilties/storage/entities/DBUser.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
|
||||
import { DBMessage } from "./DBMessage";
|
||||
|
||||
@Entity()
|
||||
export class DBUser {
|
||||
@PrimaryColumn({type: "bigint"})
|
||||
user_snowflake: string
|
||||
|
||||
@Column()
|
||||
user_name: string
|
||||
|
||||
@Column()
|
||||
user_displayname: string
|
||||
|
||||
@OneToMany(() => DBMessage, (message: DBMessage) => message.user)
|
||||
messages: DBMessage[]
|
||||
}
|
||||
Reference in New Issue
Block a user