Created
February 13, 2020 13:38
-
-
Save Porter97/be49a1ee28ad94c82b8a7d9b75bce1a6 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 Content(db.Model): | |
__tablename__ = 'content' | |
id = db.Column(db.Integer, primary_key=True) | |
stream_id = db.Column(db.String(64)) | |
title = db.Column(db.String(64)) | |
url = db.Column(db.String(128)) | |
description = db.Column(db.String(256)) | |
timestamp = db.Column(db.DateTime, index=True, default=datetime.utcnow) | |
collection_id = db.Column(db.Integer, db.ForeignKey('collections.id')) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment