base44-platform-entities

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<!-- GENERATED FILE. DO NOT EDIT. Compiled from the Base44 builder's prompt sources; the source commit is in /SOURCE_COMMIT at the repository root. Edits here are overwritten by the next sync; change the source instead. -->
<!-- 生成文件,请勿编辑。由 Base44 builder 的提示词源编译而成; 源提交记录位于仓库根目录的 /SOURCE_COMMIT 中。对此处的编辑会被 下一次同步覆盖;请改为修改源文件。 -->

Base44 entities

Base44 实体

Entities are JSON-schema objects stored as
base44/entities/<Name>.jsonc
; writing the file is what defines the data model. The platform applies each entity's
rls
rules on every app-user request.
实体是存储为
base44/entities/<Name>.jsonc
的 JSON Schema 对象;写入该文件即会定义数据模型。平台会在每次应用用户请求时应用每个实体的
rls
规则。

Pick the reference for this app

为此应用选择参考资料

Determine the app profile first. Call
GET /api/apps/{app_id}/agent-profile
(over the Base44 MCP
execute_api
tool, or with your Base44 CLI token); it returns the framework, app type, runtime, entitlements and the exact reference files to read. Without it, detect from the project files:
src/routes/__root.*
and
src/routeTree.gen.ts
mean TanStack Start;
app/_layout.*
means a native mobile (Expo) app; otherwise it is a Vite SPA.
先确定应用配置。调用
GET /api/apps/{app_id}/agent-profile
(通过 Base44 MCP 的
execute_api
工具,或使用 Base44 CLI 令牌);该接口会返回框架、应用类型、运行时、 权限以及需要读取的确切参考文件。如果无法获取,则从项目文件中检测:
src/routes/__root.*
和
src/routeTree.gen.ts
表明使用 TanStack Start;
app/_layout.*
表明是 原生移动应用(Expo);否则为 Vite SPA。

For every app

对于每个应用

  • Row-level security (RLS)
ProfileRead
Web app, Vite SPA (the default web template)Entities and the entity SDK (web apps)
Web app, TanStack StartEntities and the entity SDK (web apps)
Native mobile app (Expo, React Native)Entities and the entity SDK (mobile apps)
  • 行级安全(RLS)
应用配置查阅
Web 应用,Vite SPA(默认 Web 模板)实体与实体 SDK(Web 应用)
Web 应用,TanStack Start实体与实体 SDK(Web 应用)
原生移动应用(Expo、React Native)实体与实体 SDK(移动应用)