#-*- coding: utf-8 -*-

from django.db import models
from account_app.models import UserGroup
from .combo import Combo


class Bar(models.Model):
    class Meta:
        pass

    bar_name = models.CharField(max_length=100, unique=True)
    bar_description = models.TextField(max_length=500, null=True, blank=True)
    bar_color = models.CharField(max_length=100, default="yellow")
    bar_official = models.BooleanField(default=False)

    group = models.ManyToManyField(UserGroup, related_name='group')

    def __str__(self):
        return 'BAR:{}'.format(self.bar_name)
