oneuptime/Common/Models/ResourceLabel.ts
Simon Larsen f0c0715f36
fix
2022-04-29 20:52:23 +01:00

23 lines
437 B
TypeScript
Executable File

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