This commit is contained in:
root 2025-07-12 17:15:24 +08:00
parent 5f1fc7d9c8
commit 330d3a261e
4 changed files with 32 additions and 6 deletions

View File

@ -0,0 +1,10 @@
# 素材表
from python_core.kv import kv
from .db import Db
class MaterialDb(Db):
def __init__(self):
self.key = "material"
pass

View File

@ -0,0 +1,8 @@
# 模特表
from python_core.kv import kv
from .db import Db
class ModelDb(Db):
def __init__(self):
self.key = "model"
pass

View File

@ -0,0 +1,12 @@
# 项目表
from python_core.kv import kv
from .db import Db
class ProjectDb(Db):
def __init__(self):
self.key = "project"
pass

View File

@ -1,13 +1,9 @@
# 模板表
from python_core.kv import kv from python_core.kv import kv
from .db import Db from .db import Db
# 模板管理
# 实现模板的增删改查
# 主键 是模板的ID uuid
class TemplateDb(Db): class TemplateDb(Db):
def __init__(self): def __init__(self):
self.key = "templates" self.key = "template"
pass pass