from app.database import db

class Release(db.Model):
    __tablename__ = 'release'

    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(80), unique=True)
    description = db.Column(db.String(180), unique=False)
    open_date =  db.Column(db.String(80), unique=False)
    close_date = db.Column(db.String(80), unique=False)
    comment = db.Column(db.String(300), unique=False)
    xml = db.Column(db.String(80), unique=False)
    status = db.Column(db.String(20), unique=False)

    user_id = db.Column(db.Integer, db.ForeignKey('users.id'))

    def __repr__(self):
        return '%r' % (self.name)

from app.database import db

class Release(db.Model):
    __tablename__ = 'release'

    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(80), unique=True)
    description = db.Column(db.String(180), unique=False)
    open_date =  db.Column(db.String(80), unique=False)
    close_date = db.Column(db.String(80), unique=False)
    comment = db.Column(db.String(300), unique=False)
    xml = db.Column(db.String(80), unique=False)
    status = db.Column(db.String(20), unique=False)

    user_id = db.Column(db.Integer, db.ForeignKey('users.id'))

    def __repr__(self):
        return '%r' % (self.name)
