2022-04-30 10:57:20 +00:00
|
|
|
import { Column, Entity } from 'typeorm';
|
2022-04-26 20:34:05 +00:00
|
|
|
import BaseModel from './BaseModel';
|
2022-05-01 12:41:55 +00:00
|
|
|
|
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-30 10:57:20 +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 {
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-19 19:41:12 +00:00
|
|
|
public name?: string = undefined;
|
2022-04-29 21:38:55 +00:00
|
|
|
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-19 19:41:12 +00:00
|
|
|
public slug?: string = undefined;
|
2022-04-29 21:38:55 +00:00
|
|
|
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public dockerCredential?: DockerCredential;
|
2022-04-29 21:38:55 +00:00
|
|
|
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-19 19:41:12 +00:00
|
|
|
public imagePath?: string = undefined;
|
2022-04-29 21:38:55 +00:00
|
|
|
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-19 19:41:12 +00:00
|
|
|
public imageTags?: string = undefined;
|
2022-04-29 21:38:55 +00:00
|
|
|
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public component?: Component;
|
2022-04-29 21:38:55 +00:00
|
|
|
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public resourceLabel?: ResourceLabel;
|
2022-04-29 21:38:55 +00:00
|
|
|
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public deleteAt?: Date = undefined;
|
2022-04-29 21:38:55 +00:00
|
|
|
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public lastScan?: Date = undefined;
|
2022-04-29 21:38:55 +00:00
|
|
|
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public scanned?: boolean = undefined;
|
2022-04-29 21:38:55 +00:00
|
|
|
|
2022-04-30 10:57:20 +00:00
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public scanning?: boolean = undefined;
|
2022-04-27 19:38:55 +00:00
|
|
|
}
|