feat: 开发采集、采集箱和商品编辑功能
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
"""共享列类型:JSON(SQLite 存 TEXT,PostgreSQL 存 JSON;跨库一致)。"""
|
||||
from __future__ import annotations
|
||||
|
||||
from sqlalchemy import JSON
|
||||
|
||||
# 统一用 generic JSON:SQLite/PostgreSQL 均可,避免 autogenerate 对 JSONB 变体渲染异常。
|
||||
# 生产若需 JSONB 的索引能力,可再按需迁移,量级上差异可忽略。
|
||||
JSONType = JSON
|
||||
Reference in New Issue
Block a user