oneuptime/Common/Models/IncidentResource.ts

17 lines
343 B
TypeScript
Raw Normal View History

2022-04-29 21:38:55 +00:00
import { Column, Entity } from 'typeorm';
import BaseModel from './BaseModel';
2022-05-01 12:41:55 +00:00
2022-04-29 21:38:55 +00:00
import Monitor from './Monitor';
import Incident from './Incident';
@Entity({
name: 'IncidentResource',
})
export default class IncidentResource extends BaseModel {
@Column()
2022-05-18 20:49:52 +00:00
public incident?: Incident;
2022-04-29 21:38:55 +00:00
@Column()
2022-05-18 20:49:52 +00:00
public monitor?: Monitor;
2022-04-29 21:38:55 +00:00
}