oneuptime/Common/Models/ContainerSecurity.ts
2022-04-29 22:38:55 +01:00

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