2022-04-27 19:38:55 +00:00
|
|
|
import { Column, Entity, Index } from 'typeorm';
|
2022-04-26 20:34:05 +00:00
|
|
|
import BaseModel from './BaseModel';
|
2022-04-29 21:38:55 +00:00
|
|
|
import DockerCredential from './DockerCredential';
|
|
|
|
import Component from './Component';
|
|
|
|
import ResourceLabel from './ResourceLabel';
|
|
|
|
|
|
|
|
|
2022-04-27 19:38:55 +00:00
|
|
|
@Entity({
|
2022-04-29 21:38:55 +00:00
|
|
|
name: "UserAlerts"
|
2022-04-27 19:38:55 +00:00
|
|
|
})
|
2022-04-29 21:38:55 +00:00
|
|
|
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;
|
2022-04-27 19:38:55 +00:00
|
|
|
}
|
2022-04-26 20:24:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-26 20:34:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|