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):
|
2022-01-24 20:48:33 +01:00
|
|
|
__tablename__ = 'twitter_account'
|
|
|
|
|
2022-01-24 21:17:01 +01:00
|
|
|
account_id = twitter_db.Column(twitter_db.Integer, primary_key=True)
|
2022-01-31 18:29:20 +01:00
|
|
|
user_id = twitter_db.Column(twitter_db.String(64), nullable=False)
|
2022-02-01 13:36:05 +01:00
|
|
|
twitter_account_id = twitter_db.Column(twitter_db.String(32), nullable=False)
|
|
|
|
username = twitter_db.Column(twitter_db.String(16), nullable=False)
|
2022-01-24 20:48:33 +01:00
|
|
|
access_token = twitter_db.Column(twitter_db.String(256), nullable=False)
|
|
|
|
access_token_secret = twitter_db.Column(twitter_db.String(256), nullable=False)
|