[twitter] Allow null entry in model for tokens and since_ids
This commit is contained in:
parent
cc4bf13388
commit
c655c77c07
|
@ -9,10 +9,10 @@ from ormantic import Integer, ForeignKey, Model, Text
|
||||||
class Twitter(Model):
|
class Twitter(Model):
|
||||||
id: Integer(primary_key=True) = None
|
id: Integer(primary_key=True) = None
|
||||||
hood: ForeignKey(Hood)
|
hood: ForeignKey(Hood)
|
||||||
dms_since_id: Integer()
|
dms_since_id: Integer(allow_null=True) = None
|
||||||
mentions_since_id: Integer()
|
mentions_since_id: Integer(allow_null=True) = None
|
||||||
access_token: Text()
|
access_token: Text(allow_null=True) = None
|
||||||
access_token_secret: Text()
|
access_token_secret: Text(allow_null=True) = None
|
||||||
|
|
||||||
class Mapping(Mapping):
|
class Mapping(Mapping):
|
||||||
table_name = 'twitterbots'
|
table_name = 'twitterbots'
|
||||||
|
|
Loading…
Reference in a new issue