oneuptime/Common/Models/UserAdminNote.ts
2022-04-27 20:38:55 +01:00

17 lines
385 B
TypeScript

import { Column, Entity } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
@Entity({
name: "UserAdminNote"
})
export default class UserAdminNotes extends BaseModel {
@Column({ nullable: false })
forUser!: User;
@Column({ type: "text", nullable: false })
note!: string
@Column({ nullable: false })
postedByUser!: User
}