Casting Room Rental App Backend 範本
房間容量和時間安排
一個可生產的試鏡房租賃後端在 Back4app,具有CastingRoom容量、AuditionSlot預訂、WaitingRoomEntry隊列流程和VideoGearLog追蹤。包括ER圖、數據字典、JSON架構、API操作平台,以及一個AI Agent提示以快速引導。
房間操作要點
此模板為您提供一個租賃後台,包括<strong>CastingRoom</strong>、<strong>AuditionSlot</strong>、<strong>WaitingRoomEntry</strong>和<strong>VideoGearLog</strong>,以便員工能夠管理預訂,而無需自行創建架構。
- 房間容量控制 — 追蹤每個<strong>CastingRoom.capacity</strong>,以便員工可以在時段開始前限制<strong>WaitingRoomEntry.partySize</strong>。
- 試鏡時段預訂 — 使用<strong>AuditionSlot.startTime</strong>、<strong>AuditionSlot.endTime</strong>和<strong>AuditionSlot.status</strong>來預留回撥和試鏡。
- 排隊和入住流程 — 保持<strong>WaitingRoomEntry.checkedInAt</strong>、<strong>WaitingRoomEntry.priority</strong>和<strong>WaitingRoomEntry.status</strong>與前台排隊對齊。
- 視頻設備日誌 — 將 <strong>VideoGearLog.gearName</strong>、<strong>VideoGearLog.gearTag</strong> 和 <strong>VideoGearLog.movementType</strong> 連接到攝影機和麥克風的交接。
理解影棚租賃後端
顧客在速度和確定性上選擇影棚租賃——這意味著報價、保留和確認需要反映實時狀態。清晰勝於英雄主義。使用 Back4app 的核心實體來編碼影棚租賃的可用性、定價鉤子和履行記錄於一個一致的後端。該模式涵蓋了 <strong>User</strong>(用戶名、電子郵件、密碼、角色、顯示名稱)、<strong>CastingRoom</strong>(房間名稱、位置、容量、每小時費率、是否啟用、擁有者、備註)、<strong>AuditionSlot</strong>(影棚、顧客、開始時間、結束時間、狀態、來賓人數、備註)、<strong>VideoGearLog</strong>(影棚、處理者、設備名稱、設備標籤、動作類型、狀態、記錄時間)和 <strong>WaitingRoomEntry</strong>(影棚、顧客、參加人數、狀態、登記時間、優先權、備註),並內建身份驗證和訪問控制。連接您喜歡的前端,並更快地發貨。
最適合:
您在租賃試鏡室模板中得到的內容
為租賃試鏡室對象提供共享語言——對於相同的事物使用相同的名稱——這與其底層架構一樣重要。
無論您發布網頁還是移動設備,房間容量管理、試鏡時段排程、候場室追蹤仍然是骨幹——此頁面是快速對齊利益相關者的方式。
試鏡室租用工具
這個中心中的每個技術卡片都使用相同的 casting room 租賃後端架構,包括 <strong>CastingRoom</strong>、<strong>AuditionSlot</strong>、<strong>WaitingRoomEntry</strong> 和 <strong>VideoGearLog</strong>。
房間容量管理
<strong>CastingRoom</strong> 存儲 roomName、location、capacity、hourlyRate 和 isActive。
試鏡時段排程
<strong>AuditionSlot</strong> 連結 castingRoom、customer、startTime、endTime、status 和 guestCount。
等候室追蹤
<strong>WaitingRoomEntry</strong> 存儲 castingRoom、customer、partySize、status、checkedInAt 和 priority。
視頻設備日誌
<strong>VideoGearLog</strong> 追蹤 castingRoom、handledBy、gearName、gearTag、movementType、condition 和 loggedAt。
為什麼要使用 Back4app 建立您的租賃試鏡室後端?
Back4app 為您提供房間、時段、隊列和設備原語,讓您的團隊可以專注於排程和前台操作,而不是基礎設施。
- •房間和時段協調: <strong>CastingRoom</strong> 和 <strong>AuditionSlot</strong> 類別在一個可查詢的模型中保持容量、時間和狀態。
- •排隊意識的前台: <strong>WaitingRoomEntry</strong> 記錄跟踪 <strong>partySize</strong>、<strong>checkedInAt</strong> 和 <strong>priority</strong>,以便前台可以將正確的組安排到座位。
- •設備借出追蹤: <strong>VideoGearLog</strong> 記錄 <strong>gearName</strong>、<strong>gearTag</strong>、<strong>movementType</strong> 和 <strong>condition</strong>,以確保相機和音頻設備不會在會議之間消失。
快速構建並迭代租用試鏡室的流程,使用一個後端合約即可跨所有平台。
租借工作台的核心好處
一個幫助您更快移動的 casting room 租賃後端,而不會失去對房間、時段、排隊條目或設備的控制。
更快的前台啟動
從完整的 <strong>CastingRoom</strong>、<strong>AuditionSlot</strong> 和 <strong>WaitingRoomEntry</strong> 架構開始,而不是從零設計租賃表。
更好的房間協調
使用 <strong>CastingRoom.capacity</strong> 和 <strong>WaitingRoomEntry.partySize</strong> 來防止候診室人數過多。
清晰的設備責任
保持 <strong>VideoGearLog.gearName</strong>、<strong>VideoGearLog.gearTag</strong> 和 <strong>VideoGearLog.handledBy</strong> 可見,以便員工確認每個相機或燈具的擁有者。
可擴展的權限模型
使用 ACL/CLP,只有授權的員工可以更改 <strong>CastingRoom.isActive</strong>、<strong>AuditionSlot.status</strong> 或 <strong>WaitingRoomEntry.status</strong>。
可靠的預訂數據
存儲 <strong>AuditionSlot.startTime</strong>、<strong>AuditionSlot.endTime</strong> 和 <strong>VideoGearLog.loggedAt</strong> 的歷史記錄,以便於審計和同日調整而無需重寫模式。
AI 启动工作流程
快速生成後端架構和集成指導,只需一個結構化的提示。
準備好啟動您的租賃試鏡房應用程式了嗎?
讓 Back4app AI 代理搭建您的租賃試鏡房後端,並從一個提示生成房間容量、試鏡時段、等候室和設備記錄流程。
免費開始 — 每月 50 個 AI 代理提示,無需信用卡
租賃試鏡房技術堆棧
此租賃試鏡房後端模板中包含所有內容。
攝影室 ER 模型
攝影室出租後端架構的實體關係模型。
涵蓋房間、試鏡時段、排隊條目和設備日誌的架構。
查看圖表來源
erDiagram
User ||--o{ CastingRoom : "owner"
User ||--o{ AuditionSlot : "customer"
User ||--o{ VideoGearLog : "handledBy"
User ||--o{ WaitingRoomEntry : "customer"
CastingRoom ||--o{ AuditionSlot : "castingRoom"
CastingRoom ||--o{ VideoGearLog : "castingRoom"
CastingRoom ||--o{ WaitingRoomEntry : "castingRoom"
User {
String objectId PK
String username
String email
String password
String role
String displayName
Date createdAt
Date updatedAt
}
CastingRoom {
String objectId PK
String roomName
String location
Number capacity
Number hourlyRate
Boolean isActive
String ownerId FK
String notes
Date createdAt
Date updatedAt
}
AuditionSlot {
String objectId PK
String castingRoomId FK
String customerId FK
Date startTime
Date endTime
String status
Number guestCount
String notes
Date createdAt
Date updatedAt
}
VideoGearLog {
String objectId PK
String castingRoomId FK
String handledById FK
String gearName
String gearTag
String movementType
String condition
Date loggedAt
Date createdAt
Date updatedAt
}
WaitingRoomEntry {
String objectId PK
String castingRoomId FK
String customerId FK
Number partySize
String status
Date checkedInAt
Number priority
String notes
Date createdAt
Date updatedAt
}
房間集成流程
典型的運行流程包括身份驗證、房間查詢、候診室進入、試音時段預訂、裝備登記及即時排隊更新。
查看圖表來源
sequenceDiagram
participant User
participant App as Casting Room Rental App
participant Back4app as Back4app Cloud
User->>App: Sign in to the desk or booking portal
App->>Back4app: POST /login
Back4app-->>App: Session token
User->>App: Load rooms with capacity and rate
App->>Back4app: GET /classes/CastingRoom?order=roomName
Back4app-->>App: CastingRoom list
User->>App: Check waiting room entry or book an audition slot
App->>Back4app: POST /classes/WaitingRoomEntry or POST /classes/AuditionSlot
Back4app-->>App: WaitingRoomEntry or AuditionSlot objectId
User->>App: Log video gear movement
App->>Back4app: POST /classes/VideoGearLog
Back4app-->>App: VideoGearLog objectId
App->>Back4app: Subscribe to slot and queue updates
Back4app-->>App: Live updates for AuditionSlot and WaitingRoomEntry現場指南
每個房間租用設置中的所有類別的完整字段級別參考。
| 字段 | 類型 | 描述 | 必需 |
|---|---|---|---|
| objectId | String | Auto-generated unique identifier | 自動 |
| username | String | Login name used by staff, owners, or customers | |
| String | Email address for account access and booking notices | ||
| password | String | Hashed password (write-only) | |
| role | String | Role of the user (e.g. admin, deskStaff, owner, customer) | |
| displayName | String | Public name shown on bookings and room assignments | — |
| createdAt | Date | Auto-generated creation timestamp | 自動 |
| updatedAt | Date | Auto-generated last-update timestamp | 自動 |
8 欄位在 User
房間和佇列的訪問控制
ACL 和 CLP 策略如何保障房間、位置、佇列項目和設備日誌的安全。
用戶擁有的預訂控制
只有租戶可以更新或刪除他們的 <strong>AuditionSlot</strong> 或 <strong>WaitingRoomEntry</strong> 紀錄;工作人員可以通過驗證的雲端代碼確認。
房間和位置的完整性
只有授權的工作人員才能在容量或時間變更時創建或更改 <strong>CastingRoom</strong> 和 <strong>AuditionSlot</strong> 紀錄。
範圍限制的讀取訪問
限制 <strong>VideoGearLog</strong>、<strong>AuditionSlot</strong> 和 <strong>WaitingRoomEntry</strong> 的讀取權限,只對租戶、指派的工作人員或擁有者角色開放,以保障隱私和操作清晰性。
JSON 架構
原始 JSON 架構定義已準備好可複製到 Back4app 或用作實施參考。
{
"classes": [
{
"className": "User",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"username": {
"type": "String",
"required": true
},
"email": {
"type": "String",
"required": true
},
"password": {
"type": "String",
"required": true
},
"role": {
"type": "String",
"required": true
},
"displayName": {
"type": "String",
"required": false
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "CastingRoom",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"roomName": {
"type": "String",
"required": true
},
"location": {
"type": "String",
"required": true
},
"capacity": {
"type": "Number",
"required": true
},
"hourlyRate": {
"type": "Number",
"required": true
},
"isActive": {
"type": "Boolean",
"required": true
},
"owner": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"notes": {
"type": "String",
"required": false
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "AuditionSlot",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"castingRoom": {
"type": "Pointer",
"required": true,
"targetClass": "CastingRoom"
},
"customer": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"startTime": {
"type": "Date",
"required": true
},
"endTime": {
"type": "Date",
"required": true
},
"status": {
"type": "String",
"required": true
},
"guestCount": {
"type": "Number",
"required": true
},
"notes": {
"type": "String",
"required": false
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "VideoGearLog",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"castingRoom": {
"type": "Pointer",
"required": true,
"targetClass": "CastingRoom"
},
"handledBy": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"gearName": {
"type": "String",
"required": true
},
"gearTag": {
"type": "String",
"required": true
},
"movementType": {
"type": "String",
"required": true
},
"condition": {
"type": "String",
"required": true
},
"loggedAt": {
"type": "Date",
"required": true
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
},
{
"className": "WaitingRoomEntry",
"fields": {
"objectId": {
"type": "String",
"required": false
},
"castingRoom": {
"type": "Pointer",
"required": true,
"targetClass": "CastingRoom"
},
"customer": {
"type": "Pointer",
"required": true,
"targetClass": "User"
},
"partySize": {
"type": "Number",
"required": true
},
"status": {
"type": "String",
"required": true
},
"checkedInAt": {
"type": "Date",
"required": true
},
"priority": {
"type": "Number",
"required": true
},
"notes": {
"type": "String",
"required": false
},
"createdAt": {
"type": "Date",
"required": false
},
"updatedAt": {
"type": "Date",
"required": false
}
}
}
]
}使用 AI 代理建立
使用 Back4app AI 代理從此模板生成真實的試鏡室租賃應用程式,包括前端、後端、認證,以及房間、可用時段、佇列和設備流程。
在 Back4app 上使用這個確切的架構和行為創建安全的試鏡室租賃應用程式後端。 架構: 1. 用戶(使用 Back4app 內建):用戶名、電子郵件、密碼、角色、顯示名稱;objectId、createdAt、updatedAt(系統)。 2. CastingRoom:房間名稱(字符串,必填)、位置(字符串,必填)、容量(數字,必填)、每小時費率(數字,必填)、是否活動(布林值,必填)、擁有者(指向用戶的指針,必填)、備註(字符串,可選);objectId、createdAt、updatedAt(系統)。 3. AuditionSlot:castingRoom(指向 CastingRoom 的指針,必填)、客戶(指向用戶的指針,必填)、開始時間(日期,必填)、結束時間(日期,必填)、狀態(字符串,必填)、來賓數量(數字,必填)、備註(字符串,可選);objectId、createdAt、updatedAt(系統)。 4. VideoGearLog:castingRoom(指向 CastingRoom 的指針,必填)、處理者(指向用戶的指針,必填)、設備名稱(字符串,必填)、設備標籤(字符串,必填)、移動類型(字符串,必填)、狀態(字符串,必填)、記錄時間(日期,必填);objectId、createdAt、updatedAt(系統)。 5. WaitingRoomEntry:castingRoom(指向 CastingRoom 的指針,必填)、客戶(指向用戶的指針,必填)、派對規模(數字,必填)、狀態(字符串,必填)、入住時間(日期,必填)、優先級(數字,必填)、備註(字符串,可選);objectId、createdAt、updatedAt(系統)。 安全性: - 前台員工可以創建和更新 WaitingRoomEntry 和 AuditionSlot。 - 資產擁有者管理他們的 CastingRoom 記錄並審查他們擁有的房間的 VideoGearLog 項目。 - 客戶可以查看他們自己的 AuditionSlot 和 WaitingRoomEntry 記錄。 - 當添加派對規模和來賓數量時,保持房間容量檢查的一致性。 認證: - 註冊、登錄、登出。 行為: - 列出活動房間、創建試鏡時段、為候診室來賓辦理入住,並記錄相機或麥克風的移動。 交付: - Back4app 應用程式,包含架構、ACLs、CLPs;房間預訂、候診室控制、試鏡排程、設備記錄和基於角色的訪問的前端。
按下面的按鈕以預先填寫此模板提示來開啟代理。
這是沒有技術後綴的基本提示。您可以在之後調整生成的前端堆疊。
API沙箱
對照租賃房間模式試用REST和GraphQL端點。響應使用模擬數據,無需Back4app帳戶。
使用與此模板相同的架構。
選擇您的技術堆疊
展開每個卡片以查看如何將 Name、CastingRoom 和 Rate 與您選擇的技術棧整合。
Flutter 演播室租用後端
React 演播室租用後端
React 原生 演播室租用後端
Next.js 演播室租用後端
JavaScript 演播室租用後端
Android 演播室租用後端
iOS 演播室租用後端
Vue 演播室租用後端
Angular 演播室租用後端
GraphQL 演播室租用後端
REST API 演播室租用後端
PHP 演播室租用後端
.NET 演播室租用後端
您在每種技術中得到的
每種堆棧都使用相同的演出室租賃後端架構和API合約。
統一的房間和插槽結構
使用一致的架構管理 <strong>CastingRoom</strong>、<strong>AuditionSlot</strong> 和 <strong>WaitingRoomEntry</strong> 記錄。
設備登錄 for studiOS
通過 <strong>VideoGearLog</strong> 字段跟踪相機、燈光和麥克風,例如 <strong>gearName</strong> 和 <strong>gearTag</strong>。
為演出桌安排試鏡
讓工作人員和租客可以清楚看到候診室壓力和插槽時間。
在租賃中具備角色感知的訪問權限
定義工作人員、擁有者和租客在房間、隊列和預訂工作流程中的權限。
GraphQL 的租賃 REST API
將移動端、網頁或管理儀表板連接到相同的預訂後端。
Casting Tech 比較
比較所有支援的技術的設置速度、SDK 風格和 AI 支持。
| 框架 | 設置時間 | Casting Room 租賃優惠 | SDK 類型 | AI 支援 |
|---|---|---|---|---|
| 約 5 分鐘 | 在行動和網頁上用於房間預訂的單一代碼基。 | 類別 SDK | 完整 | |
| 少於 5 分鐘 | 快速的網頁儀表板,用於選角桌。 | 類別 SDK | 完整 | |
| 約3–7分鐘 | 用於租賃和登記的跨平台移動應用程式。 | 輸入的SDK | 完整 | |
| 快速(5分鐘)設置 | 用於預訂房間的伺服器渲染網頁應用程式。 | 輸入的SDK | 完整 | |
| 約3–5分鐘 | 用於前台工作流程的輕量級網頁整合。 | 輸入的SDK | 完整 | |
| 約5分鐘 | 原生 Android 應用程式供員工和租戶使用。 | 輸入的 SDK | 完整 | |
| 少於 5 分鐘 | 原生 iOS 應用程式用於房間和時段更新。 | 輸入的 SDK | 完整 | |
| 約 3–7 分鐘 | Reactive 網頁介面用於管理房間操作。 | 輸入的 SDK | 完整 | |
| 快速(5 分鐘)設置 | 企業網頁應用程式供租賃工作人員使用。 | 輸入的 SDK | 完整 | |
| 少於 2 分鐘 | 靈活的 GraphQL API 用於投放房間數據。 | GraphQL API | 完整 | |
| 快速(2 分鐘)設置 | REST API 集成房間和時段預訂。 | REST API | 完整 | |
| 約 3 分鐘 | 伺服器端 PHP 後端用於租賃工作流程。 | REST API | 完整 | |
| 約 3–7 分鐘 | .NET 用於放映室操作的後端。 | 輸入的 SDK | 完整 |
設置時間反映從專案啟動到第一次使用此模板架構的<strong>CastingRoom</strong>或<strong>AuditionSlot</strong>查詢的預期持續時間。
試鏡房常見問題
有關如何使用此模板建立試鏡房租賃後端的常見問題。