mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
21 lines
474 B
TypeScript
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;
|
|
}
|