mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
29 lines
593 B
TypeScript
29 lines
593 B
TypeScript
import { Column, Entity } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
|
|
/*
|
|
* Resource Status like Online, Degraded, Offline.
|
|
* Customers have requested for custom status and we'll give them those.
|
|
*/
|
|
@Entity({
|
|
name: 'ResourceStatus',
|
|
})
|
|
export default class ResourceStatus extends BaseModel {
|
|
@Column()
|
|
public project!: Project;
|
|
|
|
@Column()
|
|
public name!: string;
|
|
|
|
@Column()
|
|
public color!: string;
|
|
|
|
@Column()
|
|
public createdByUser!: User;
|
|
|
|
@Column()
|
|
public deletedByUser!: User;
|
|
}
|