oneuptime/Common/Models/ProjectAdminNotes.ts
Simon Larsen f0c0715f36
fix
2022-04-29 20:52:23 +01:00

18 lines
427 B
TypeScript

import { Column, Entity } from 'typeorm';
import BaseModel from './BaseModel';
import Project from './Project';
import User from './User';
@Entity({
name: "ProjectAdminNote"
})
export default class ProjectAdminNote extends BaseModel {
@Column({ nullable: false })
project!: Project;
@Column({ type: "text", nullable: false })
note!: string
@Column({ nullable: false })
createdByUser!: User
}