Large swathes of re-engineering

This commit is contained in:
2025-11-12 20:41:13 -05:00
parent 6f868dff1e
commit 34f57b96dc
20 changed files with 1567 additions and 196 deletions

View 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[]
}