feat: add movie management API and database schema

- Implemented movie CRUD operations with endpoints for creating, retrieving, updating, and deleting movies.
- Added pagination and filtering capabilities for movie retrieval.
- Integrated Redis caching for improved performance on movie data retrieval.
- Created database schema for movies with necessary fields and types.
- Added migration files for initial movie table creation and subsequent updates.
- Configured database connection using Drizzle ORM with MySQL.
- Established Redis connection utility for caching.
This commit is contained in:
ngthanhvu
2026-07-22 00:31:10 -04:00
parent f09e3275eb
commit ad8d577493
30 changed files with 3244 additions and 349 deletions
+2 -4
View File
@@ -58,8 +58,7 @@ const allowRegistration = ref(true)
<p class="text-sm font-semibold text-white">Chế độ bảo trì</p>
<p class="mt-1 text-xs text-slate-400">Tạm thời tắt website để bảo trì</p>
</div>
<input v-model="maintenanceMode" type="checkbox"
class="h-5 w-5 cursor-pointer rounded border-white/20 bg-white/5 text-yellow-400 focus:ring-yellow-400/50">
<AdminToggle v-model="maintenanceMode" />
</label>
<label class="flex cursor-pointer items-center justify-between rounded-lg border border-white/5 bg-white/5 p-4 transition hover:border-white/10">
@@ -67,8 +66,7 @@ const allowRegistration = ref(true)
<p class="text-sm font-semibold text-white">Cho phép đăng </p>
<p class="mt-1 text-xs text-slate-400">Cho phép người dùng mới đăng tài khoản</p>
</div>
<input v-model="allowRegistration" type="checkbox"
class="h-5 w-5 cursor-pointer rounded border-white/20 bg-white/5 text-yellow-400 focus:ring-yellow-400/50">
<AdminToggle v-model="allowRegistration" />
</label>
</div>
</div>