twitter #2

Merged
s434708 merged 50 commits from twitter into master 2022-06-09 19:42:33 +02:00
Showing only changes of commit 426feab1fd - Show all commits

View File

@ -4,8 +4,10 @@ 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))
__tablename__ = 'twitter_account'
account_id = twitter_db.Column(twitter_db.Integer, primary_key=True)
twitter_user_id = twitter_db.Column(twitter_db.String(16), unique=True, nullable=False)
username = twitter_db.Column(twitter_db.String(16), unique=True, nullable=False)
access_token = twitter_db.Column(twitter_db.String(256), nullable=False)
access_token_secret = twitter_db.Column(twitter_db.String(256), nullable=False)