Skip to content

Instantly share code, notes, and snippets.

@Porter97
Last active February 12, 2020 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porter97/053b7897d8bd39779b6abe1e2566f631 to your computer and use it in GitHub Desktop.
Save Porter97/053b7897d8bd39779b6abe1e2566f631 to your computer and use it in GitHub Desktop.
#...
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('users.id'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment