You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
659 B
23 lines
659 B
import flask_sqlalchemy
|
|
|
|
|
|
db = flask_sqlalchemy.SQLAlchemy(session_options=dict(autoflush=False))
|
|
|
|
|
|
class Medium(db.Model):
|
|
__tablename__ = 'media'
|
|
|
|
id = db.Column(db.Integer, primary_key=True)
|
|
typename = db.Column(db.String)
|
|
caption = db.Column(db.String)
|
|
shortcode = db.Column(db.String)
|
|
taken_at = db.Column(db.DateTime)
|
|
width = db.Column(db.Integer)
|
|
height = db.Column(db.Integer)
|
|
display_url = db.Column(db.String)
|
|
thumbnail_url = db.Column(db.String)
|
|
likes = db.Column(db.Integer)
|
|
owner_id = db.Column(db.Integer)
|
|
owner_username = db.Column(db.String)
|
|
owner_profile_pic_url = db.Column(db.String)
|