oneuptime/Common/Models/AutomatedScript.ts
Simon Larsen 53815189dc
fix lint.
2022-05-19 20:41:12 +01:00

34 lines
625 B
TypeScript

import { Column, Entity } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Project from './Project';
export enum ScriptType {
JavaScript = 'JavaScript',
Bash = 'Bash',
}
@Entity({
name: 'AutomatedScripts',
})
export default class AutomatedScript extends BaseModel {
@Column()
public name?: string = undefined;
@Column()
public script?: string = undefined;
@Column()
public scriptType?: ScriptType;
@Column()
public slug?: string = undefined;
@Column()
public project?: Project;
@Column()
public deletedByUser?: User;
}