mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 09:04:44 -04:00
Add PermissionModule and GroupsModule
Both currently contain only the database entities, taken from the schema. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
47d005e4fc
commit
36a2b3c03d
6 changed files with 63 additions and 0 deletions
14
src/permissions/note-user-permission.entity.ts
Normal file
14
src/permissions/note-user-permission.entity.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { Column, ManyToOne } from 'typeorm/index';
|
||||
import { Note } from '../notes/note.entity';
|
||||
import { User } from '../users/user.entity';
|
||||
|
||||
export class NoteUserPermission {
|
||||
@ManyToOne(_ => User)
|
||||
user: User;
|
||||
|
||||
@ManyToOne(_ => Note)
|
||||
note: Note;
|
||||
|
||||
@Column()
|
||||
canEdit: boolean;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue