oneuptime/Common/Models/ProjectUser.ts
2022-05-18 21:49:52 +01:00

21 lines
474 B
TypeScript

import { Column, Entity } from 'typeorm';
import Role from '../Types/Role';
import BaseModel from './BaseModel';
import Project from './Project';
import User from './User';
@Entity({
name: 'ProjectAdminNote',
})
export default class ProjectAdminNote extends BaseModel {
@Column({ nullable: false })
public project?: Project;
@Column({ type: 'varchar', nullable: false })
public user?: User;
@Column({ nullable: false })
public role?: Role;
}