Make Categories a predefined list

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Allow null values for categories for now

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-02-22 16:54:01 +01:00
parent 75554cd3f5
commit 7086fe8389
27 changed files with 89 additions and 655 deletions

View File

@@ -27,10 +27,12 @@ export enum ParticipantRole {
CREATOR = 'creator',
}
export interface ICategory {
title: string;
description: string;
picture: string;
export enum Category {
BUSINESS = 'business',
CONFERENCE = 'conference',
BIRTHDAY = 'birthday',
DEMONSTRATION = 'demonstration',
MEETING = 'meeting',
}
export interface IParticipant {
@@ -47,7 +49,7 @@ export interface IEvent {
title: string;
description: string;
category: ICategory;
category: Category;
begins_on: Date;
ends_on: Date;