Skip to main content

Module convenience

Module convenience 

Source
Expand description

模型便捷函数模块

提供创建各种字段类型的便捷函数

Functions§

array_field
便捷函数:创建数组字段 在 MongoDB 中使用原生数组,在 SQL 数据库中使用 JSON 存储
boolean_field
便捷函数:创建布尔字段
datetime_field
便捷函数:创建日期时间字段
datetime_with_tz_field
便捷函数:创建带时区的日期时间字段
dict_fieldDeprecated
便捷函数:创建字典字段(基于Object类型)
float_field
便捷函数:创建浮点数字段
integer_field
便捷函数:创建整数字段
json_field
便捷函数:创建JSON字段
list_field
便捷函数:创建列表字段(array_field 的别名) 在 MongoDB 中使用原生数组,在 SQL 数据库中使用 JSON 存储
reference_field
便捷函数:创建引用字段
string_field
便捷函数:创建字符串字段
uuid_field
便捷函数:创建UUID字段