🚧 UserGroups

ref #14
This commit is contained in:
philipp committed 2020-12-04 18:34:14 +01:00
1 parent 5b7f3ae12f
commit 3275b5fd80
4 files changed
+154 -4

No files matched your search

+4 -4
View File
@@ -1,17 +1,17 @@
import { PrimaryGeneratedColumn, Column, OneToMany, Entity, ManyToOne } from "typeorm";
import {
IsInt,
IsNotEmpty,
IsOptional,
IsString,
IsString
} from "class-validator";
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
import { Permission } from "./Permission";
/**
* Defines the UserGroup interface.
*/
@Entity()
export abstract class UserGroup {
export class UserGroup {
/**
* Autogenerated unique id (primary key).
*/
@@ -37,7 +37,7 @@ export abstract class UserGroup {
/**
* The group's description
*/
@Column({nullable: true})
@Column({ nullable: true })
@IsOptional()
@IsString()
description?: string;