oneuptime/Common/Models/ProjectAlertBalance.ts
Simon Larsen 053f70daac
fix
2022-05-01 13:41:55 +01:00

25 lines
573 B
TypeScript

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