mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-31 07:08:40 -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
23
src/groups/group.entity.ts
Normal file
23
src/groups/group.entity.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm/index';
|
||||
|
||||
@Entity()
|
||||
export class Group {
|
||||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
@Column({
|
||||
unique: true,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column()
|
||||
displayName: string;
|
||||
|
||||
/**
|
||||
* Is set to denote a special group
|
||||
* Special groups are used to map the old share settings like "everyone can edit"
|
||||
* or "logged in users can view" to the group permission system
|
||||
*/
|
||||
@Column()
|
||||
special: boolean;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue