Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created February 13, 2020 13:38
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/be49a1ee28ad94c82b8a7d9b75bce1a6 to your computer and use it in GitHub Desktop.
Save Porter97/be49a1ee28ad94c82b8a7d9b75bce1a6 to your computer and use it in GitHub Desktop.
#...
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