* refactor: change sort strategy from offset to targetId
* fix: remove unnecessary query to optimize performance
* refactor: change sort api to allow object
* refactor: change function member positions
* fix: test case names
* fix: static to instance
* feat: add sort value initialization via beforeCreate hook
* fix: after reinitialization, hooks are lost
* test: temp test for hook
* fix: hooks defined in the table options does not work
* refactor: change sort config into sort type field and fix updateAssociations to create with foreignKey
* refactor: abstract utility functions
* fix: type definition
* fix: type and where value type
Co-authored-by: chenos <chenlinxh@gmail.com>
* feat: add fields options for create/update actions
* test: add test case for json
* fix: minor update for reviews
* fix: test case
* fix: change fields filter strategy for create/update
* feat: add transaction for create/update
* feat: collection hooks
* export action middlewares
* add associated middleware
* cleanup
* add field interface options
* 调整配置参数
* 补充字段类型 options
* 继续调整配置参数
* 支持排序
* filterable & sortable & draggable
* feat: add random name for creating table (#23)
* feat: add random name for creating table
* fix: random number
* Feature: collections field (#24)
* feat: add random name for field and update table options
* fix: make field name required
* fix: this declaration
* showInXX 参数调整
* showInXX 放 component 里
* 继续调整参数
* 字段分组、pages 表配置参数等
* change date to datetime
* 选择类型字段的 options 改为 dataSource
* feat: refactor hooks initialization and add field options by interface (#25)
* feat: refactor hooks initialization and add field options by interface
* refactor: use model.set to build input values
* refactor: extend setter/getter to adapt field options
* fix: try to fix virtual field
* refactor: setter/getter of FieldModel
* 改进自定义 model 等细节
* 补充注释
* bugfix
Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
* test: add more case for list
* feat: allow order by associations in sorting
* fix: add more utils test in resourcer and fix except usage
* test: fix cases
* fix: page default value and max page size
* fix: page params and cases
* fix: list params
* fix: constants in list action
* fix: count when include, attributes when except and cases
* test: add case for hasMany.
* fix: remove unused import
* fix: use env instead of hard code for create database instance
* refactor: change most "all" hook to "each" hook
* refactor: split test suits into files
* add: use DB_LOG_SQL in env to control SQL in log
* add: test for logical operator and fixes