oneuptime/Common/Models/Component.ts
2022-04-27 20:38:55 +01:00

26 lines
419 B
TypeScript
Executable File

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Project from './Project';
@Entity({
name: "UserAlerts"
})
export default class ComponentModel extends BaseModel {
@Column()
project!: Project;
@Column()
name!: string;
@Column()
slug!: string;
@Column()
createdByUser!: User;
@Column()
deletedByUser!: User;
}