@@ -0,0 +1,1122 @@
+# -*- coding: utf-8 -*-%0A%0A%0Afrom datetime import datetime%0A%0Afrom rio.core import db%0A%0A%0Aclass Environ(db.Model):%0A%0A    __tablename__ = 'environ'%0A%0A    id = db.Column(db.Integer(), primary_key=True)%0A    stage_id = db.Column(db.Integer(), db.ForeignKey('stage.id'), nullable=False)%0A    key = db.Column(db.String(64), nullable=False)%0A    value = db.Column(db.String(1024), nullable=False)%0A    created_at = db.Column(db.DateTime(), nullable=False, default=datetime.utcnow)%0A    updated_at = db.Column(db.DateTime(), nullable=False,%0A                           default=datetime.utcnow, onupdate=datetime.utcnow)%0A%0A%0Aclass Stage(db.Model):%0A%0A    __tablename__ = 'environ_stage'%0A%0A    id = db.Column(db.Integer(), primary_key=True)%0A    project_id = db.Column(db.Integer(), db.ForeignKey('project.id'), nullable=False)%0A    slug = db.Column(db.String(64), nullable=False)%0A    name = db.Column(db.String(128), nullable=False)%0A    created_at = db.Column(db.DateTime(), nullable=False, default=datetime.utcnow)%0A    updated_at = db.Column(db.DateTime(), nullable=False,%0A                           default=datetime.utcnow, onupdate=datetime.utcnow)%0A

define environ model: state and environ.