mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
54 lines
823 B
TypeScript
54 lines
823 B
TypeScript
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import DockerCredential from './DockerCredential';
|
|
import Component from './Component';
|
|
import ResourceLabel from './ResourceLabel';
|
|
|
|
|
|
@Entity({
|
|
name: "UserAlerts"
|
|
})
|
|
export default class Model extends BaseModel {
|
|
|
|
@Column()
|
|
name!: string;
|
|
|
|
@Column()
|
|
slug!: string;
|
|
|
|
@Column()
|
|
dockerCredential!: DockerCredential
|
|
|
|
@Column()
|
|
imagePath!: string;
|
|
|
|
@Column()
|
|
imageTags!: string;
|
|
|
|
@Column()
|
|
component!: Component
|
|
|
|
@Column()
|
|
resourceLabel!: ResourceLabel
|
|
|
|
@Column()
|
|
deleteAt!: Date;
|
|
|
|
@Column()
|
|
lastScan!: Date;
|
|
|
|
@Column()
|
|
scanned!: boolean;
|
|
|
|
@Column()
|
|
scanning!: boolean;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|