mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 23:09:59 +00:00
34 lines
641 B
TypeScript
34 lines
641 B
TypeScript
import { Entity, PrimaryGeneratedColumn, Column, OneToMany } from "typeorm";
|
|
import { CaseNote } from "./CaseNote";
|
|
|
|
@Entity("cases")
|
|
export class Case {
|
|
@PrimaryGeneratedColumn() id: number;
|
|
|
|
@Column() guild_id: string;
|
|
|
|
@Column() case_number: number;
|
|
|
|
@Column() user_id: string;
|
|
|
|
@Column() user_name: string;
|
|
|
|
@Column() mod_id: string;
|
|
|
|
@Column() mod_name: string;
|
|
|
|
@Column() type: number;
|
|
|
|
@Column() audit_log_id: string;
|
|
|
|
@Column() created_at: string;
|
|
|
|
@Column() is_hidden: boolean;
|
|
|
|
@Column() pp_id: string;
|
|
|
|
@Column() pp_name: string;
|
|
|
|
@OneToMany(type => CaseNote, note => note.case)
|
|
notes: CaseNote[];
|
|
}
|