251207:0048 Update Schema & Data dictionary/ Login PASS
This commit is contained in:
@@ -21,7 +21,7 @@ related:
|
||||
|
||||
- **Backend Framework**: NestJS 10.x
|
||||
- **ORM**: TypeORM 0.3.x
|
||||
- **Database**: MariaDB 10.11
|
||||
- **Database**: MariaDB 11.8
|
||||
- **Cache/Lock**: Redis 7.x + Redlock
|
||||
- **Message Queue**: BullMQ
|
||||
- **Monitoring**: Prometheus + Grafana
|
||||
|
||||
@@ -183,7 +183,7 @@ export class DocumentCounter {
|
||||
|
||||
#### **3.2.2 Virtual Columns for JSON Performance**
|
||||
|
||||
เนื่องจากเราใช้ MariaDB 10.11 และมีการเก็บข้อมูล JSON (Details) ให้ใช้ **Generated Columns (Virtual)** สำหรับ Field ที่ต้อง Search/Sort บ่อยๆ และทำ Index บน Virtual Column นั้น
|
||||
เนื่องจากเราใช้ MariaDB 11.8 และมีการเก็บข้อมูล JSON (Details) ให้ใช้ **Generated Columns (Virtual)** สำหรับ Field ที่ต้อง Search/Sort บ่อยๆ และทำ Index บน Virtual Column นั้น
|
||||
|
||||
```sql
|
||||
-- ตัวอย่าง SQL Migration
|
||||
@@ -408,7 +408,7 @@ Unified Workflow Engine (Core Architecture)
|
||||
| ----------------------- | ---------------------------------------------------- | -------------------------------------- |
|
||||
| **Framework** | `@nestjs/core`, `@nestjs/common` | Core Framework |
|
||||
| **Language** | `TypeScript` | ใช้ TypeScript ทั้งระบบ |
|
||||
| **Database** | `MariaDB 10.11` | ฐานข้อมูลหลัก |
|
||||
| **Database** | `MariaDB 11.8` | ฐานข้อมูลหลัก |
|
||||
| **ORM** | `@nestjs/typeorm`, `typeorm` | 🗃️จัดการการเชื่อมต่อและ Query ฐานข้อมูล |
|
||||
| **Validation** | `class-validator`, `class-transformer` | 📦ตรวจสอบและแปลงข้อมูลใน DTO |
|
||||
| **Auth** | `@nestjs/jwt`, `@nestjs/passport`, `passport-jwt` | 🔐การยืนยันตัวตนด้วย JWT |
|
||||
|
||||
@@ -52,11 +52,11 @@ related:
|
||||
|
||||
### Test Distribution
|
||||
|
||||
| Level | Coverage | Speed | Purpose |
|
||||
| ----------- | -------- | ---------- | ------------------------------- |
|
||||
| Unit | 60% | Fast (ms) | ทดสอบตรรกะแต่ละ Function |
|
||||
| Level | Coverage | Speed | Purpose |
|
||||
| ----------- | -------- | ---------- | ---------------------------- |
|
||||
| Unit | 60% | Fast (ms) | ทดสอบตรรกะแต่ละ Function |
|
||||
| Integration | 30% | Medium (s) | ทดสอบการทำงานร่วมกันของ Modules |
|
||||
| E2E | 10% | Slow (m) | ทดสอบ User Journey ทั้งหมด |
|
||||
| E2E | 10% | Slow (m) | ทดสอบ User Journey ทั้งหมด |
|
||||
|
||||
---
|
||||
|
||||
@@ -958,7 +958,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
mariadb:
|
||||
image: mariadb:10.11
|
||||
image: mariadb:11.8
|
||||
env:
|
||||
MYSQL_ROOT_PASSWORD: test
|
||||
MYSQL_DATABASE: lcbp3_test
|
||||
|
||||
Reference in New Issue
Block a user