Last active
February 12, 2020 14:00
-
-
Save Porter97/053b7897d8bd39779b6abe1e2566f631 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#... | |
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