refactor use case

This commit is contained in:
dpurbosakti
2025-08-20 16:51:24 +07:00
parent a218489496
commit 5c716eb269
46 changed files with 3080 additions and 278 deletions

No files matched your search

+1 -1
View File
@@ -9,6 +9,6 @@ type Unit struct {
ecore.SmallMain // adjust this according to the needs
Installation_Id *uint16 `json:"installation_id"`
Installation *ei.Installation `json:"installation" gorm:"foreignKey:Installation_Id"`
Code string `json:"code" gorm:"size:10"`
Code string `json:"code" gorm:"unique;size:10"`
Name string `json:"name" gorm:"size:50"`
}