/**
 * ORM / CRUD 层
 *
 * - DbStore：宿主注入的数据库令牌
 * - Repository / BaseService：数据访问与业务基类
 * - QueryOp / 回收站：字段查询与软删
 * - attachCrudRoutes：内置 CRUD 路由
 */
export { DbStore } from './db-store';
export { baseColumns, BASE_COLUMN_COMMENTS } from './base-columns';
export { entitySchemas } from './entity-schema';
export { columnComments, getColumnComments, listColumnCommentTables, syncColumnCommentsToPg } from './column-comments';
export { readCrudConfig, resolveSoftDelete, resolveUpsert, } from './crud-config';
export { Repository, getRepository, InjectRepository, } from './repository';
export { BaseService } from './service';
export { q, compactWhere, needsAdvancedQuery, buildQueryOp } from './query-op';
export { queryWithOp } from './query-builder';
export { attachCrudRoutes } from './crud-register';
export { isTenantEnabled, tableHasTenantId, resolveTenantScope, applyTenantWhere, stampTenantId, noTenant, normalizeHost, } from './tenant';
export { tableHasDepartmentId, resolveDataScope, applyDataScopeWhere, applyRowScopes, noDataScope, } from './data-scope';
export type { CrudUpsertMode, CrudModifyType, CrudWriteOptions, CrudTrashQueryOptions, CrudDeleteOptions, CrudAddData, CrudUpdateWhere, CrudUpdatePatch, CrudIdOrIds, CrudDeleteWhere, CrudListWhere, CrudListOptions, CrudInfoWhere, CrudPageQuery, } from '../../typings/comm/crud';
export type { PageQuery, PagePagination, PageResult, } from '../../typings/comm/page';
