Files

9 lines
365 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""共享列类型:JSONSQLite 存 TEXTPostgreSQL 存 JSON;跨库一致)。"""
from __future__ import annotations
from sqlalchemy import JSON
# 统一用 generic JSONSQLite/PostgreSQL 均可,避免 autogenerate 对 JSONB 变体渲染异常。
# 生产若需 JSONB 的索引能力,可再按需迁移,量级上差异可忽略。
JSONType = JSON