# Path: fbone/utils.py
# USERNAME_LEN_MAX = 25
# 
# Path: fbone/appointment/forms.py
# MESSAGE_LEN_MAX = 1024
# 
# EMAIL_LEN_MAX = 64
# 
# TIMEZONE_LEN_MAX = 64


from ..extensions import db
from ..utils import USERNAME_LEN_MAX
from .forms import MESSAGE_LEN_MAX, EMAIL_LEN_MAX, TIMEZONE_LEN_MAX
# -*- coding: utf-8 -*-



class Appointment(db.Model):

    __tablename__ = 'appointments'

    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(USERNAME_LEN_MAX), nullable=False)
    email = db.Column(db.String(EMAIL_LEN_MAX), nullable=False)
    start_time = db.Column(db.Integer, nullable=False)
    end_time = db.Column(db.Integer, nullable=False)
    timezone = db.Column(db.String(TIMEZONE_LEN_MAX), nullable=False)

# Path: fbone/utils.py
# USERNAME_LEN_MAX = 25
# 
# Path: fbone/appointment/forms.py
# MESSAGE_LEN_MAX = 1024
# 
# EMAIL_LEN_MAX = 64
# 
# TIMEZONE_LEN_MAX = 64


# Path: fbone/appointment/models.py
from ..extensions import db
from ..utils import USERNAME_LEN_MAX
from .forms import MESSAGE_LEN_MAX, EMAIL_LEN_MAX, TIMEZONE_LEN_MAX

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



class Appointment(db.Model):

    __tablename__ = 'appointments'

    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(USERNAME_LEN_MAX), nullable=False)
    email = db.Column(db.String(EMAIL_LEN_MAX), nullable=False)
    start_time = db.Column(db.Integer, nullable=False)
    end_time = db.Column(db.Integer, nullable=False)
    timezone = db.Column(db.String(TIMEZONE_LEN_MAX), nullable=False)

    message = db.Column(db.String(MESSAGE_LEN_MAX), nullable=False)