twt account model fix
This commit is contained in:
parent
7dd6a34338
commit
426feab1fd
@ -4,8 +4,10 @@ from flask_sqlalchemy import SQLAlchemy
|
|||||||
twitter_db = SQLAlchemy()
|
twitter_db = SQLAlchemy()
|
||||||
|
|
||||||
class TwitterAccount(twitter_db.Model):
|
class TwitterAccount(twitter_db.Model):
|
||||||
id = twitter_db.Column(twitter_db.Integer, primary_key=True)
|
__tablename__ = 'twitter_account'
|
||||||
twitter_user_id = twitter_db.Column(twitter_db.String(16), unique=True)
|
|
||||||
username = twitter_db.Column(twitter_db.String(16), unique=True)
|
account_id = twitter_db.Column(twitter_db.Integer, primary_key=True)
|
||||||
access_token = twitter_db.Column(twitter_db.String(256))
|
twitter_user_id = twitter_db.Column(twitter_db.String(16), unique=True, nullable=False)
|
||||||
access_token_secret = twitter_db.Column(twitter_db.String(256))
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user