#!/usr/bin/env python3
"""Document models for mongoengine"""
from mongoengine import *
from bson import ObjectId


class Label(Document):
    """Model for labels of events"""
    name = StringField(required=True, unique=True)  # TODO: set to primary key?
    description = StringField()
    url = URLField()

#!/usr/bin/env python3
"""Document models for mongoengine"""
from mongoengine import *
from bson import ObjectId


class Label(Document):
    """Model for labels of events"""
    name = StringField(required=True, unique=True)  # TODO: set to primary key?
    description = StringField()
    url = URLField()
    default = BooleanField(default=False)  # suggested to display by default
    parent_labels = ListField(StringField())  # rudimentary hierarchy of labels
    color = StringField()  # suggested color for label
    visibility = StringField()  # suggested visibility

Add new fields to label document
Add new fields to label document

- Make default default value False
