Guest User

Untitled

a guest
Feb 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. from sqlalchemy.dialects.postgresql import ranges, ExcludeConstraint
  2.  
  3. class Quarter(db.Model):
  4. __tablename__ = 'quarters'
  5.  
  6. id = db.Column(db.Integer, primary_key=True)
  7. year = db.Column(db.Integer, nullable=False)
  8. name = db.Column(db.Text, nullable=False)
  9. period = db.Column(ranges.DATERANGE, nullable=False)
Add Comment
Please, Sign In to add comment