Skip to content

Instantly share code, notes, and snippets.

@Porter97 Porter97/app\models(7).py

Last active Feb 12, 2020
Embed
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('users.id'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.