create some indexes
This commit is contained in:
parent
647c802b2f
commit
641bcb85b1
|
@ -13,10 +13,10 @@ class Patch(db.Entity):
|
||||||
|
|
||||||
class Room(db.Entity):
|
class Room(db.Entity):
|
||||||
id = PrimaryKey(int, auto=True)
|
id = PrimaryKey(int, auto=True)
|
||||||
last_activity = Required(datetime, default=lambda: datetime.utcnow())
|
last_activity = Required(datetime, default=lambda: datetime.utcnow(), index=True)
|
||||||
owner = Required(UUID)
|
owner = Required(UUID, index=True)
|
||||||
commands = Set('Command')
|
commands = Set('Command')
|
||||||
seed = Required('Seed')
|
seed = Required('Seed', index=True)
|
||||||
multisave = Optional(Json)
|
multisave = Optional(Json)
|
||||||
timeout = Required(int, default=lambda: 6)
|
timeout = Required(int, default=lambda: 6)
|
||||||
allow_tracker = Required(bool, default=True)
|
allow_tracker = Required(bool, default=True)
|
||||||
|
|
Loading…
Reference in New Issue