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

25 lines
625 B
TypeScript

import { Column, Entity } from 'typeorm';
import Role from '../Types/Role';
import BaseModel from './BaseModel';
import Project from './Project';
import User from './User';
@Entity({
name: "ProjectAlertBalance"
})
export default class ProjectAlertBalance extends BaseModel {
@Column({ nullable: false })
minimumBalance!: number;
@Column({ type: "text", nullable: false })
rechargeToBalance!: number
@Column({ nullable: false })
sendAlertsToUS!: boolean
@Column({ nullable: false })
sendAlertsToNonUS!: boolean
@Column({ nullable: false })
sendAlertsToHighRisk!: boolean
}