mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-10-19 22:00:15 -04:00
f81e67a3a1
Signed-off-by: David Mehren <git@herrmehren.de>
21 lines
516 B
TypeScript
21 lines
516 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { Column, Entity, ManyToOne } from 'typeorm/index';
|
|
import { Group } from '../groups/group.entity';
|
|
import { Note } from '../notes/note.entity';
|
|
|
|
@Entity()
|
|
export class NoteGroupPermission {
|
|
@ManyToOne((_) => Group, { primary: true })
|
|
group: Group;
|
|
|
|
@ManyToOne((_) => Note, (note) => note.groupPermissions, { primary: true })
|
|
note: Note;
|
|
|
|
@Column()
|
|
canEdit: boolean;
|
|
}
|