mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 23:09:59 +00:00
29 lines
550 B
TypeScript
29 lines
550 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;
|
||
|
|
||
|
@OneToMany(type => CaseNote, note => note.case)
|
||
|
notes: CaseNote[];
|
||
|
}
|