feat: add component_codes management functionality

This commit is contained in:
Tran Anh Tuan
2026-05-11 11:00:46 +07:00
parent bf20286f04
commit 9ea72b4eea
14 changed files with 1562 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package models
import (
"encoding/json"
"time"
)
type ComponentCode struct {
ID int64 `json:"id"`
ComponentID int64 `json:"componentId"`
Code string `json:"code"`
CodeType string `json:"codeType"`
IsPrimary bool `json:"isPrimary"`
Metadata json.RawMessage `json:"metadata"`
CreatedAt time.Time `json:"createdAt"`
}