mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
32 lines
470 B
TypeScript
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|