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

32 lines
470 B
TypeScript

import { Column, Entity } from 'typeorm';
import BaseModel from './BaseModel';
import Project from './Project';
import { CustomFieldType } from './CustomField';
@Entity({
name: "MonitorCustomField"
})
export default class MonitorCustomField extends BaseModel {
@Column()
fieldName!: string;
@Column()
fieldType!: CustomFieldType
@Column()
project!: Project;
@Column()
uniqueField!: boolean;
}