oneuptime/Common/Models/CustomField.ts
2022-04-27 20:54:34 +01:00

38 lines
497 B
TypeScript

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