mirror of
https://gitlab.com/octospacc/WinDog.git
synced 2025-06-05 22:09:20 +02:00
Misc updates, improve global API, start work on db and module strings
This commit is contained in:
@@ -6,3 +6,17 @@ class BaseModel(Model):
|
||||
class Meta:
|
||||
database = Db
|
||||
|
||||
class Entity(BaseModel):
|
||||
id = CharField(null=True)
|
||||
id_hash = CharField()
|
||||
#settings = ForeignKeyField(EntitySettings, backref="entity")
|
||||
#language = CharField(null=True)
|
||||
|
||||
class User(Entity):
|
||||
pass
|
||||
|
||||
class Room(Entity):
|
||||
pass
|
||||
|
||||
Db.create_tables([User, Room], safe=True)
|
||||
|
||||
|
Reference in New Issue
Block a user