Update Note entity

We now use the new permissions split in users and groups. Also the note now knows the colors of its authors.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-08-13 20:24:45 +02:00
parent ba9d7a6572
commit ef92ab73f9
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
4 changed files with 47 additions and 71 deletions

View file

@ -1,4 +1,11 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { NoteGroupPermission } from './note-group-permission.entity';
import { NoteUserPermission } from './note-user-permission.entity';
@Module({})
@Module({
imports: [
TypeOrmModule.forFeature([NoteUserPermission, NoteGroupPermission]),
],
})
export class PermissionsModule {}