package tableDB type TableSchema struct { ID string Name string Memo string EnableRLS bool Settings map[string]any IsSecret bool // 是否敏感表(不被索引) CreateTime int64 Creator string UpdateTime int64 Updater string } type FlatPolicy struct { Condition string ConditionArgs []any } type PolicySchema struct { ID string UserID string Type string // inherit, table Targets []string Action string // read, write, full Condition string ConditionArgs []any CreateTime int64 Creator string } type FieldSchema struct { ID string TableID string Name string Type string IsIndex bool Memo string Settings map[string]any CreateTime int64 Creator string } type QueryRequest struct { Select []string Joins []JoinConfig Where string OrderBy string Limit int Offset int Args []any } type JoinConfig struct { Table string Type string On string }