Replace GORM with bbolt for database operations

Migrated from GORM to bbolt for lightweight key-value storage, better aligning with project requirements. Updated repository methods to utilize bbolt's native APIs and removed dependencies associated with GORM.
This commit is contained in:
2025-05-09 23:58:48 +05:00
parent f262d5f931
commit 86886fb5d9
7 changed files with 92 additions and 84 deletions

View File

@@ -1,7 +1,6 @@
package setting
type Setting struct {
ID uint `gorm:"primary_key"`
Code string `gorm:"type:varchar(100);uniqueIndex;not null"`
Value string `gorm:"type:text"`
Code string `json:"code"`
Value string `json:"value"`
}