From 330d3a261ea56bb9dcebee34262582dfde9d8e3d Mon Sep 17 00:00:00 2001 From: root Date: Sat, 12 Jul 2025 17:15:24 +0800 Subject: [PATCH] fix --- python_core/database/material.py | 10 ++++++++++ python_core/database/model.py | 8 ++++++++ python_core/database/project.py | 12 ++++++++++++ python_core/database/template.py | 8 ++------ 4 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 python_core/database/material.py create mode 100644 python_core/database/model.py create mode 100644 python_core/database/project.py diff --git a/python_core/database/material.py b/python_core/database/material.py new file mode 100644 index 0000000..b392199 --- /dev/null +++ b/python_core/database/material.py @@ -0,0 +1,10 @@ + + +# 素材表 + +from python_core.kv import kv +from .db import Db +class MaterialDb(Db): + def __init__(self): + self.key = "material" + pass \ No newline at end of file diff --git a/python_core/database/model.py b/python_core/database/model.py new file mode 100644 index 0000000..c80455b --- /dev/null +++ b/python_core/database/model.py @@ -0,0 +1,8 @@ +# 模特表 + +from python_core.kv import kv +from .db import Db +class ModelDb(Db): + def __init__(self): + self.key = "model" + pass \ No newline at end of file diff --git a/python_core/database/project.py b/python_core/database/project.py new file mode 100644 index 0000000..1dee407 --- /dev/null +++ b/python_core/database/project.py @@ -0,0 +1,12 @@ + + +# 项目表 + +from python_core.kv import kv +from .db import Db + +class ProjectDb(Db): + + def __init__(self): + self.key = "project" + pass \ No newline at end of file diff --git a/python_core/database/template.py b/python_core/database/template.py index c92186d..90ea2db 100644 --- a/python_core/database/template.py +++ b/python_core/database/template.py @@ -1,13 +1,9 @@ - +# 模板表 from python_core.kv import kv from .db import Db - -# 模板管理 -# 实现模板的增删改查 -# 主键 是模板的ID uuid class TemplateDb(Db): def __init__(self): - self.key = "templates" + self.key = "template" pass \ No newline at end of file