Misc updates, improve global API, start work on db and module strings

This commit is contained in:
2024-06-25 02:08:49 +02:00
parent 7d426e9497
commit 8f1b80ab14
26 changed files with 389 additions and 210 deletions

View File

@@ -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)