14 lines
598 B
Python
14 lines
598 B
Python
from flask_sqlalchemy import SQLAlchemy
|
|
|
|
twitter_db = SQLAlchemy()
|
|
|
|
class TwitterAccount(twitter_db.Model):
|
|
__tablename__ = 'twitter_account'
|
|
|
|
id = twitter_db.Column(twitter_db.Integer, primary_key=True)
|
|
user_id = twitter_db.Column(twitter_db.String(64), nullable=False)
|
|
twitter_account_id = twitter_db.Column(twitter_db.String(32), nullable=False)
|
|
username = twitter_db.Column(twitter_db.String(16), 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)
|