# Path: vilya/core.py
# class VilyaError(Exception):
# class VilyaFormError(Exception):
# class Service(object):
#     def __init__(self, msg):
#     def __init__(self, errors=None):
#     def _isinstance(self, model, raise_error=True):
#     def _preprocess_params(self, kwargs):
#     def save(self, model):
#     def all(self):
#     def get(self, id):
#     def get_all(self, *ids):
#     def find(self, **kwargs):
#     def first(self, **kwargs):
#     def get_or_404(self, id):
#     def new(self, **kwargs):
#     def create(self, **kwargs):
#     def update(self, model, **kwargs):
#     def delete(self, model):
#     def transaction(cls, func):
#         def transaction_block(*args, **kwargs):


from datetime import datetime
from ..core import db
# -*- coding: utf-8 -*-



class Issue(db.Model):
    __tablename__ = 'issues'

    id = db.Column(db.Integer(), primary_key=True)
    name = db.Column(db.String(200))
    description = db.Column(db.Text)
    number = db.Column(db.Integer())
    project_id = db.Column(db.Integer())
    creator_id = db.Column(db.Integer())

# Path: vilya/core.py
# class VilyaError(Exception):
# class VilyaFormError(Exception):
# class Service(object):
#     def __init__(self, msg):
#     def __init__(self, errors=None):
#     def _isinstance(self, model, raise_error=True):
#     def _preprocess_params(self, kwargs):
#     def save(self, model):
#     def all(self):
#     def get(self, id):
#     def get_all(self, *ids):
#     def find(self, **kwargs):
#     def first(self, **kwargs):
#     def get_or_404(self, id):
#     def new(self, **kwargs):
#     def create(self, **kwargs):
#     def update(self, model, **kwargs):
#     def delete(self, model):
#     def transaction(cls, func):
#         def transaction_block(*args, **kwargs):


# Path: vilya/issues/models.py
from datetime import datetime
from ..core import db

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



class Issue(db.Model):
    __tablename__ = 'issues'

    id = db.Column(db.Integer(), primary_key=True)
    name = db.Column(db.String(200))
    description = db.Column(db.Text)
    number = db.Column(db.Integer())
    project_id = db.Column(db.Integer())
    creator_id = db.Column(db.Integer())

    closer_id = db.Column(db.Integer())