oneuptime/Common/Models/ApplicationSecurity.ts
Simon Larsen f0c0715f36
fix
2022-04-29 20:52:23 +01:00

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;
};