pbr-ayct-backend/ayct_backend/twitter/models.py

12 lines
471 B
Python
Raw Normal View History

2022-01-24 19:37:27 +01:00
from enum import unique
from flask_sqlalchemy import SQLAlchemy
twitter_db = SQLAlchemy()
class TwitterAccount(twitter_db.Model):
id = twitter_db.Column(twitter_db.Integer, primary_key=True)
twitter_user_id = twitter_db.Column(twitter_db.String(16), unique=True)
username = twitter_db.Column(twitter_db.String(16), unique=True)
access_token = twitter_db.Column(twitter_db.String(256))
access_token_secret = twitter_db.Column(twitter_db.String(256))