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:
David Mehren 2020-08-12 20:24:43 +02:00
parent 97cc2085af
commit 637b16abda
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
6 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,14 @@
import { Column, ManyToOne } from 'typeorm/index';
import { Group } from '../groups/group.entity';
import { Note } from '../notes/note.entity';
export class NoteGroupPermission {
@ManyToOne(_ => Group)
group: Group;
@ManyToOne(_ => Note)
note: Note;
@Column()
canEdit: boolean;
}