pg数据类型alpha支持
- serial
- boolean
- text
- int
- double precision
- date
- time
- timestamp
- jsonb
- array
pg字段约束alpha支持
- PRIMARY KEY
- FOREIGN KEY
- UNIQUE
- // NOT NULL
- 可通过字段配置required属性实现,不在DB级别声明
- // CHECK
es数据类型alpha支持
- text
- keyword
- 主字段类型为text,并使用fields属性声明一个keyword的子字段使用,实现字段既能用于搜索又能用于聚合
- integer
- double
- date
- boolean
- object
- nested
- geo_point
es字段属性alpha支持
cms编辑组件alpha支持
- 组件类型+映射
- single line text
- rich text
- integer
- float
- pg: double precision
- es: double
- boolean checkbox
- select
- multi-select
- radio
- checkbox
- date
- time
- datetime
- json
- geo-point
- 组件属性
- label
- description/placeholder/helptext
- required
- multi-value/array
- reference
- unique
pg数据类型后续考虑支持
- varchar
- bigint
- numeric
- enum
- geos (extension)
- 目前通过使用jsonb保存lat和lon属性替代实现,使用extension的好处是可以在sql中做搜索,但是我们目前的场景主要是在es中搜索,所以暂时用不上
- timestamptz (extension)
- uuid (extension)
pg数据类型参考
pg字段约束参考
es数据类型参考
headless cms参考
- 数据类型
- string (text/single-line text/richtext/markdown/html/link)
- number (int/float)
- boolean (checkbox)
- date
- datetime
- enum (select/multiple-choice)
- json
- asset (image/video/file)
- location
- color
- 字段属性
- default-value
- placeholder
- description/helptext
- required
- unique
- multiple-value (是否支持多值设置)
- label
- object
- length
- min/max
- reference (外键引用)
- localization (多语言)
- validation (校验规则)