working
This commit is contained in:
@@ -8,9 +8,9 @@ class APIToken(Base):
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
token_type = Column(String, nullable=False) # 'fitbit' or 'garmin'
|
||||
access_token = Column(String, nullable=False) # This should be encrypted in production
|
||||
access_token = Column(String, nullable=True) # This should be encrypted in production
|
||||
refresh_token = Column(String, nullable=True) # This should be encrypted in production
|
||||
expires_at = Column(DateTime, nullable=False)
|
||||
expires_at = Column(DateTime, nullable=True)
|
||||
scopes = Column(String, nullable=True)
|
||||
garth_oauth1_token = Column(String, nullable=True) # OAuth1 token for garmin (JSON)
|
||||
garth_oauth2_token = Column(String, nullable=True) # OAuth2 token for garmin (JSON)
|
||||
|
||||
Reference in New Issue
Block a user