租赁要点
此模板为您提供了一个托盘叉车租赁后端,包含<strong>PalletJack</strong> 可用性、<strong>RentalBooking</strong> 窗口、<strong>MaintenanceLog</strong> 历史和<strong>InventoryCheck</strong> 计数,以便工作人员在发货前确认资产。
- 预订窗口优先 — 使用预订号码、托盘叉车、客户、仓库、开始时间和结束时间跟踪每个<strong>RentalBooking</strong>。
- 容量验证 — 在<strong>PalletJack</strong> 上存储重量容量千克、日费率和小时费率,以便工作人员在结账前确认安全使用。
- 维护可追溯性 — 使用<strong>MaintenanceLog</strong> 条目记录维护类型、状态、报告的问题和执行的工作,以记录服务历史。
- 仓库库存清晰度 — 保持每个<strong>仓库</strong>和<strong>库存检查</strong>的计数可见,以便团队可以核对可用计数、保留计数和维护计数。
概述:托盘车租赁应用
一个顺畅的托盘车租赁结账隐藏了数十个检查:资格、冲突、押金和交接。这通常不是一个单一的错误——而是偏差。这个模板建模了在Back4app上的核心实体,因此您可以在不从头重建预订逻辑的情况下启动一个正在运行的托盘车租赁平台。模式涵盖<strong>用户</strong>(用户名、电子邮件、密码、角色)、<strong>仓库</strong>(仓库代码、名称、地址、经理)、<strong>托盘车</strong>(资产标签、模型名称、重量容量公斤、状态、仓库、每日费用、每小时费用、最后检查时间)、<strong>租赁预订</strong>(预订号码、托盘车、客户、仓库、开始时间、结束时间、状态、重量负载公斤、备注)、<strong>维护日志</strong>(托盘车、技术员、维护类型、状态、报告问题、执行的工作、完成时间)和<strong>库存检查</strong>(仓库、检查员、计数时间、可用计数、保留计数、维护计数、备注),并内置认证和基于角色的访问。连接您首选的前端并更快启动。
最佳适用:
您在托盘千斤顶租赁模板中获得的内容
当托盘千斤顶租赁量激增时,非正式流程首先崩溃——这并不是因为人们不再关心,而是因为记忆和信息无法扩展。
无论您是从 Flutter、React、Next.js 还是其他支持的路径开始,都期待相同的用户登录和角色、托盘千斤顶资产记录、租赁预订窗口和负载检查。
Pallet Jack 租赁能力
此中心中的每个技术卡片都使用相同的租赁后端架构,包括 User、Warehouse、PalletJack、RentalBooking、MaintenanceLog 和 InventoryCheck。
用户登录和角色
用户存储用户名、电子邮件、密码以及用于 rentalDesk、所有者或客户访问的角色。
托盘车资产记录
PalletJack 记录 assetTag、modelName、weightCapacityKg、status、warehouse、dailyRate 和 hourlyRate。
RentalBooking 窗口和负载检查
RentalBooking 关联客户、托盘车、仓库、预订窗口、状态和请求的 weightLoadKg。
MaintenanceLog 服务历史
MaintenanceLog 存储每个托盘车的 maintenanceType、状态、reportedIssue、workPerformed 和 completedAt。
仓库库存可见性
InventoryCheck 包含每个仓库审计的 availableCount、reservedCount 以及 maintenanceCount。
为什么要使用 Back4app 构建您的托盘千斤顶租赁后端?
Back4app 为您提供预订、资产和维护原语,因此您的团队可以专注于调度和安全检查,而不是拼凑存储、身份验证和 API 托管。
- •预订和资产控制: RentalBooking 将客户与 PalletJack 绑定,包含 startAt、endAt、weightLoadKg 和 status,以便桌面可以看到每个预订窗口。
- •容量和服务检查: PalletJack 字段,如 weightCapacityKg、dailyRate、hourlyRate 和 status,使其在租赁开始之前轻松地 Block 不安全的结账尝试。
- •实时 + API 灵活性: 在保持 REST 和 GraphQL 可供每个桌面平板和所有者仪表板使用的同时,使用 Live Queries 进行 RentalBooking 和 MaintenanceLog 更新。
快速构建和迭代租赁桌工作流程,通过所有平台的一个后端合同。
托盘车租赁的好处
一个租赁后台,帮助前台员工、资产拥有者和客户协调预订,减少交接错误。
更快的柜台登记
RentalBooking 记录已包括 bookingNumber、palletJack、customer、warehouse、startAt 和 endAt,因此前台可以在不翻阅电子表格的情况下确认预订。
更安全的调度决定
使用 PalletJack.weightCapacityKg 和状态在资产离开仓库之前停止超负荷租赁。
清晰的维护历史
MaintenanceLog 将 maintenanceType、reportedIssue、workPerformed 和 completedAt 保存在一个地方以供每个资产审核。
库存可追溯性
InventoryCheck 显示 availableCount、reservedCount 和 maintenanceCount,使得核对哪些托盘车在现场、在维修或可用变得更加容易。
用户友好的报告
资产拥有者可以在不改变前台工作流程的情况下审核仓库、托盘车和租赁预订数据。
AI 引导工作流程
通过一个结构化提示快速生成后端框架和租赁台整合指导。
准备好启动您的托盘车租赁应用程序了吗?
让 Back4app AI 代理搭建您的租赁后端,并从一个提示生成预订、维护和库存工作流程。
免费开始 — 每月 50 个 AI 代理提示,无需信用卡
租赁技术栈
此托盘车租赁后端模板包含的一切。
租赁实体图
托盘车租赁后端架构的实体关系模型。
涵盖用户、仓库、叉车、预订窗口、维护日志和库存检查的架构。
查看图表源
erDiagram
User ||--o{ Warehouse : "manager"
User ||--o{ RentalBooking : "customer"
User ||--o{ MaintenanceLog : "technician"
User ||--o{ InventoryCheck : "inspector"
Warehouse ||--o{ PalletJack : "stores"
Warehouse ||--o{ RentalBooking : "fulfills"
Warehouse ||--o{ InventoryCheck : "audits"
PalletJack ||--o{ RentalBooking : "reserved in"
PalletJack ||--o{ MaintenanceLog : "service history"
PalletJack }o--|| Warehouse : "assigned to"
RentalBooking }o--|| PalletJack : "books"
MaintenanceLog }o--|| PalletJack : "tracks"
InventoryCheck }o--|| Warehouse : "counts"
User {
String objectId PK
String username
String email
String password
String role
Date createdAt
Date updatedAt
}
Warehouse {
String objectId PK
String warehouseCode
String name
String address
String managerId FK
Date createdAt
Date updatedAt
}
PalletJack {
String objectId PK
String assetTag
String modelName
Number weightCapacityKg
String status
String warehouseId FK
Number dailyRate
Number hourlyRate
Date lastInspectionAt
Date createdAt
Date updatedAt
}
RentalBooking {
String objectId PK
String bookingNumber
String palletJackId FK
String customerId FK
String warehouseId FK
Date startAt
Date endAt
String status
Number weightLoadKg
String notes
Date createdAt
Date updatedAt
}
MaintenanceLog {
String objectId PK
String palletJackId FK
String technicianId FK
String maintenanceType
String status
String reportedIssue
String workPerformed
Date completedAt
Date createdAt
Date updatedAt
}
InventoryCheck {
String objectId PK
String warehouseId FK
String inspectorId FK
Date countedAt
Number availableCount
Number reservedCount
Number maintenanceCount
String notes
Date createdAt
Date updatedAt
}
租赁台流程
登录、叉车查找、预订创建、维护审查和库存更新的典型运行流程。
查看图表源
sequenceDiagram
participant User
participant App as Pallet Jack Rental App
participant Back4app as Back4app Cloud
User->>App: Sign in to the rental desk dashboard
App->>Back4app: POST /login
Back4app-->>App: Session token
User->>App: Load warehouse inventory and pallet jack status
App->>Back4app: GET /classes/PalletJack?include=warehouse&order=assetTag
Back4app-->>App: PalletJack list with warehouse pointers
User->>App: Reserve a pallet jack for a booking window
App->>Back4app: POST /classes/RentalBooking
Back4app-->>App: Booking confirmation and bookingNumber
User->>App: Record a maintenance log after inspection
App->>Back4app: POST /classes/MaintenanceLog
Back4app-->>App: MaintenanceLog objectId
User->>App: Refresh stock counts for the warehouse
App->>Back4app: POST /classes/InventoryCheck
Back4app-->>App: InventoryCheck saved字段指南
叉车租赁架构中每个类的完整字段级参考。
| 字段 | 类型 | 描述 | 必需 |
|---|---|---|---|
| objectId | String | Auto-generated unique identifier | 自动 |
| username | String | User login name | |
| String | User email address | ||
| password | String | Hashed password (write-only) | |
| role | String | Role of the user (e.g., rentalDesk, owner, customer) | |
| createdAt | Date | Auto-generated creation timestamp | 自动 |
| updatedAt | Date | Auto-generated last-update timestamp | 自动 |
7 字段在 User 中
访问规则和权限
ACL 和 CLP 策略如何保护用户档案、叉车资产、预订和维护日志。
用户和预订所有权
只有经过身份验证的桌面用户或资产经理可以创建、编辑或取消他们负责的用户、租赁预订和库存检查行。
资产完整性检查
在 weightLoadKg 超过 PalletJack.weightCapacityKg 或资产状态设置为 inMaintenance 时,使用 Cloud Code beforeSave 拒绝 RentalBooking。
受限仓库可见性
限制 Warehouse 和 InventoryCheck 的读取权限仅限于员工和所有者,同时保持公共客户只能访问他们自己的预订详情。
JSON Schema
准备好复制到 Back4app 或用作实施参考的原始 JSON schema 定义。
{
"classes": [
{
"className": "User",
"fields": {
"objectId": {
"type": "String",
"required": false,
"auto": true
},
"username": {
"type": "String",
"required": true
},
"email": {
"type": "String",
"required": true
},
"password": {
"type": "String",
"required": true
},
"role": {
"type": "String",
"required": true
},
"createdAt": {
"type": "Date",
"required": false,
"auto": true
},
"updatedAt": {
"type": "Date",
"required": false,
"auto": true
}
}
},
{
"className": "Warehouse",
"fields": {
"objectId": {
"type": "String",
"required": false,
"auto": true
},
"warehouseCode": {
"type": "String",
"required": true
},
"name": {
"type": "String",
"required": true
},
"address": {
"type": "String",
"required": true
},
"manager": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"createdAt": {
"type": "Date",
"required": false,
"auto": true
},
"updatedAt": {
"type": "Date",
"required": false,
"auto": true
}
}
},
{
"className": "PalletJack",
"fields": {
"objectId": {
"type": "String",
"required": false,
"auto": true
},
"assetTag": {
"type": "String",
"required": true
},
"modelName": {
"type": "String",
"required": true
},
"weightCapacityKg": {
"type": "Number",
"required": true
},
"status": {
"type": "String",
"required": true
},
"warehouse": {
"type": "Pointer",
"required": true,
"targetClass": "Warehouse"
},
"dailyRate": {
"type": "Number",
"required": true
},
"hourlyRate": {
"type": "Number",
"required": true
},
"lastInspectionAt": {
"type": "Date",
"required": false
},
"createdAt": {
"type": "Date",
"required": false,
"auto": true
},
"updatedAt": {
"type": "Date",
"required": false,
"auto": true
}
}
},
{
"className": "RentalBooking",
"fields": {
"objectId": {
"type": "String",
"required": false,
"auto": true
},
"bookingNumber": {
"type": "String",
"required": true
},
"palletJack": {
"type": "Pointer",
"required": true,
"targetClass": "PalletJack"
},
"customer": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"warehouse": {
"type": "Pointer",
"required": true,
"targetClass": "Warehouse"
},
"startAt": {
"type": "Date",
"required": true
},
"endAt": {
"type": "Date",
"required": true
},
"status": {
"type": "String",
"required": true
},
"weightLoadKg": {
"type": "Number",
"required": false
},
"notes": {
"type": "String",
"required": false
},
"createdAt": {
"type": "Date",
"required": false,
"auto": true
},
"updatedAt": {
"type": "Date",
"required": false,
"auto": true
}
}
},
{
"className": "MaintenanceLog",
"fields": {
"objectId": {
"type": "String",
"required": false,
"auto": true
},
"palletJack": {
"type": "Pointer",
"required": true,
"targetClass": "PalletJack"
},
"technician": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"maintenanceType": {
"type": "String",
"required": true
},
"status": {
"type": "String",
"required": true
},
"reportedIssue": {
"type": "String",
"required": false
},
"workPerformed": {
"type": "String",
"required": false
},
"completedAt": {
"type": "Date",
"required": false
},
"createdAt": {
"type": "Date",
"required": false,
"auto": true
},
"updatedAt": {
"type": "Date",
"required": false,
"auto": true
}
}
},
{
"className": "InventoryCheck",
"fields": {
"objectId": {
"type": "String",
"required": false,
"auto": true
},
"warehouse": {
"type": "Pointer",
"required": true,
"targetClass": "Warehouse"
},
"inspector": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"countedAt": {
"type": "Date",
"required": true
},
"availableCount": {
"type": "Number",
"required": true
},
"reservedCount": {
"type": "Number",
"required": true
},
"maintenanceCount": {
"type": "Number",
"required": true
},
"notes": {
"type": "String",
"required": false
},
"createdAt": {
"type": "Date",
"required": false,
"auto": true
},
"updatedAt": {
"type": "Date",
"required": false,
"auto": true
}
}
}
]
}Pallet Jack Builder 提示
使用 Back4app AI Agent 从此模板生成一个真实的托盘车租赁应用,包括前端、后端、身份验证以及预订、维护和库存流程。
在 Back4app 上创建一个安全的托盘车租赁应用程序后端,使用完全相同的架构和行为。 架构: 1. 用户(使用 Back4app 内置):用户名,电子邮件,密码,角色;objectId,createdAt,updatedAt(系统)。 2. 仓库:仓库编码(字符串,必填),名称(字符串,必填),地址(字符串,必填),经理(指向用户的指针,必填);objectId,createdAt,updatedAt(系统)。 3. 托盘车:资产标签(字符串,必填),模型名称(字符串,必填),重量容量Kg(数字,必填),状态(字符串,必填),仓库(指向仓库的指针,必填),每日租金(数字,必填),每小时租金(数字,必填),最后检查时间(日期,选填);objectId,createdAt,updatedAt(系统)。 4. 租赁预定:预定编号(字符串,必填),托盘车(指向托盘车的指针,必填),客户(指向用户的指针,必填),仓库(指向仓库的指针,必填),开始时间(日期,必填),结束时间(日期,必填),状态(字符串,必填),承重Kg(数字,选填),备注(字符串,选填);objectId,createdAt,updatedAt(系统)。 5. 维护日志:托盘车(指向托盘车的指针,必填),技术人员(指向用户的指针,必填),维护类型(字符串,必填),状态(字符串,必填),报告的问题(字符串,选填),完成的工作(字符串,选填),完成时间(日期,选填);objectId,createdAt,updatedAt(系统)。 6. 库存检查:仓库(指向仓库的指针,必填),检查员(指向用户的指针,必填),计数时间(日期,必填),可用数量(数字,必填),保留数量(数字,必填),维护数量(数字,必填),备注(字符串,选填);objectId,createdAt,updatedAt(系统)。 安全性: - 只有租赁台工作人员和仓库经理可以创建或批准租赁预定记录。 - 所有者可以查看自己资产的托盘车库存和维护历史。 - 客户只能查看自己的租赁预定记录。 - 维护日志的创建仅限于技术人员和经理。 - 库存检查记录仅对仓库团队可见。 - 使用 ACL 和 CLP,以便托盘车状态、仓库库存和预定详情不公开可写。 认证: - 注册,登录,注销。 行为: - 按仓库和重量容量Kg列出托盘车,创建预定,记录维护,捕获库存计数,并在维护或租赁更改可用性时更新托盘车状态。 交付: - Back4app 应用程序,包含架构、ACL、CLP,以及供租赁台工作人员、资产所有者和客户管理托盘车预定、容量检查、维护日志和仓库库存的前端流程。
按下面的按钮以打开带有预填充模板提示的代理。
这是没有技术后缀的基本提示。您可以在之后调整生成的前端堆栈。
API 沙箱
尝试针对托盘车租赁架构的 REST 和 GraphQL 端点。响应使用模拟数据,无需 Back4app 帐户。
使用与此模板相同的架构。
选择您的技术栈
展开每个卡片以查看如何将 Warehouse、Code 和 PalletJack 与您选择的技术栈集成。
Flutter 托盘叉车租赁后端
React 托盘叉车租赁后端
React 原生 托盘叉车租赁后端
Next.js 托盘叉车租赁后端
JavaScript 托盘叉车租赁后端
Android 托盘叉车租赁后端
iOS 托盘叉车租赁后端
Vue 托盘叉车租赁后端
Angular 托盘叉车租赁后端
GraphQL 托盘叉车租赁后端
REST API 托盘叉车租赁后端
PHP 托盘叉车租赁后端
.NET 托盘叉车租赁后端
您从每项技术中获得的内容
每个技术栈使用相同的拖板车租赁后端架构和 API 合同。
统一的租赁数据结构
使用一致的架构轻松管理用户、仓库、拖板车、租赁预订、维护日志和库存检查记录。
租赁的容量检查
在创建预订之前,比较请求的 weightLoadKg 与 PalletJack.weightCapacityKg。
资产的维护可见性
在一个地方跟踪每个托盘车的检查历史和状态。
仓库库存控制
保持 floor stock 和预订的 availableCount、reservedCount 和 maintenanceCount 可见。
堆栈比较
比较所有支持的技术的设置速度、SDK 风格和 AI 支持。
| 框架 | 设置时间 | 出租福利 | SDK 类型 | 人工智能支持 |
|---|---|---|---|---|
| 大约5分钟 | 移动端和网页上的租赁桌工具的单一代码库。 | 类型化SDK | 完整 | |
| 少于5分钟 | 快速网络仪表板用于预订和资产状态。 | 类型化SDK | 完整 | |
| ~3–7分钟 | 仓库员工的跨平台移动应用。 | 已输入SDK | 完整 | |
| 快速(5分钟)设置 | 为客户和员工提供的服务器渲染预订门户。 | 已输入SDK | 完整 | |
| ~3–5分钟 | 租赁运营的轻量级网页集成。 | 已输入SDK | 完整 | |
| 大约5分钟 | 用于仓库扫描和发货的原生 Android 应用程序。 | 输入的SDK | 完整 | |
| 少于 5 分钟 | 用于主管和租赁服务人员的原生 iOS 应用程序。 | 输入的SDK | 完整 | |
| ~3–7分钟 | 用于预订和库存的 React 交互式网页UI。 | 输入的SDK | 完整 | |
| 快速(5分钟)设置 | 企业仓库操作的网页应用。 | 输入的SDK | 完整 | |
| 少于 2 分钟 | 灵活的 GraphQL API 用于预订和资产查询。 | GraphQL API | 完整 | |
| 快速设置(2 分钟) | REST API 与预订和库存系统的集成。 | REST API | 完整 | |
| 约 3 分钟 | 服务器端 PHP 后端用于租赁工作流。 | REST API | 完整 | |
| ~3–7分钟 | .NET 后端用于操作仪表板。 | 输入的SDK | 完整 |
设置时间反映从项目启动到首次使用此模板架构的托盘车或预订查询的预期持续时间。
托盘车常见问题
有关使用此模板构建托盘车租赁后端的常见问题。