mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-19 07:20:00 +00:00
24 lines
475 B
TypeScript
24 lines
475 B
TypeScript
import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
|
|
import { Case } from "./Case";
|
|
|
|
@Entity("case_notes")
|
|
export class CaseNote {
|
|
@PrimaryGeneratedColumn() id: number;
|
|
|
|
@Column() case_id: number;
|
|
|
|
@Column() mod_id: string;
|
|
|
|
@Column() mod_name: string;
|
|
|
|
@Column() body: string;
|
|
|
|
@Column() created_at: string;
|
|
|
|
@ManyToOne(
|
|
type => Case,
|
|
theCase => theCase.notes,
|
|
)
|
|
@JoinColumn({ name: "case_id" })
|
|
case: Case;
|
|
}
|