oneuptime/Common/Models/ProjectUser.ts

21 lines
474 B
TypeScript
Raw Normal View History

2022-04-29 19:52:23 +00:00
import { Column, Entity } from 'typeorm';
import Role from '../Types/Role';
import BaseModel from './BaseModel';
2022-05-01 12:41:55 +00:00
2022-04-29 19:52:23 +00:00
import Project from './Project';
import User from './User';
@Entity({
2022-04-29 19:54:29 +00:00
name: 'ProjectAdminNote',
2022-04-29 19:52:23 +00:00
})
2022-04-29 19:54:29 +00:00
export default class ProjectAdminNote extends BaseModel {
2022-04-29 19:52:23 +00:00
@Column({ nullable: false })
2022-05-18 20:49:52 +00:00
public project?: Project;
2022-04-29 19:54:29 +00:00
2022-05-04 20:47:41 +00:00
@Column({ type: 'varchar', nullable: false })
2022-05-18 20:49:52 +00:00
public user?: User;
2022-04-29 19:52:23 +00:00
@Column({ nullable: false })
2022-05-18 20:49:52 +00:00
public role?: Role;
2022-04-29 19:54:29 +00:00
}