Dưới đây là các cách thiết kế bảng label mapping với 4 trường thông tin: Label, ID, Area và Source:
1. Bảng Excel/Google Sheets đơn giản
| ID | Label | Area | Source |
|---|
| PME_001 | Performance Issue | PME | User Report |
| PME_002 | Memory Leak | PME | System Alert |
| FIN_001 | Payment Error | Finance | Customer Feedback |
2. Cấu trúc JSON
{
"label_mapping": [
{
"id": "PME_001",
"label": "Performance Issue",
"area": "PME",
"source": "User Report"
},
{
"id": "PME_002",
"label": "Memory Leak",
"area": "PME",
"source": "System Alert"
}
]
}
3. Database Schema
CREATE TABLE label_mapping (
id VARCHAR(10) PRIMARY KEY,
label VARCHAR(100) NOT NULL,
area VARCHAR(50) NOT NULL,
source VARCHAR(50) NOT NULL
);
4. CSV Format
ID,Label,Area,Source
PME_001,Performance Issue,PME,User Report
PME_002,Memory Leak,PME,System Alert
FIN_001,Payment Error,Finance,Customer Feedback
5. Nested Structure theo Area
PME:
- id: PME_001
label: Performance Issue
source: User Report
- id: PME_002
label: Memory Leak
source: System Alert
Finance:
- id: FIN_001
label: Payment Error
source: Customer Feedback
6. Quy tắc đặt ID
- Format: [AREA]_[NUMBER]
- Ví dụ: PME_001, FIN_002, SEC_003
- Hoặc: [AREA][SOURCE][NUMBER]
- Ví dụ: PME_UR_001 (PME User Report 001)
7. Mẫu Google Sheets với validation
- Cột ID: Tự động generate theo pattern
- Cột Label: Free text
- Cột Area: Dropdown list (PME, Finance, Security, etc.)
- Cột Source: Dropdown list (User Report, System Alert, API, etc.)
Bạn muốn tôi tạo template cụ thể cho format nào?