Skip to content

Instantly share code, notes, and snippets.



Last active Feb 12, 2020
What would you like to do?
class Collection(db.Model):
__tablename__ = 'collections'
id = db.Column(db.Integer, primary_key=True)
stream_id = db.Column(db.String(64))
name = db.Column(db.String(64))
description = db.Column(db.String(256))
timestamp = db.Column(db.DateTime, index=True, default=datetime.utcnow)
author_id = db.Column(db.Integer, db.ForeignKey(''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment