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