feat: Add Balance field to Subscriber model with default value of 0

- Add Balance float64 field to Subscriber struct with JSON and GORM tags
- Set default value to 0 in database schema
- Align PlanID and Status field formatting
This commit is contained in:
nutcas3
2026-04-17 15:53:29 +03:00
parent d5ca53030c
commit ed04533db6
@@ -21,6 +21,7 @@ type Subscriber struct {
Status SubscriberStatus `json:"status" gorm:"default:'active'"` Status SubscriberStatus `json:"status" gorm:"default:'active'"`
PlanID uint `json:"plan_id"` PlanID uint `json:"plan_id"`
Balance float64 `json:"balance" gorm:"default:0"`
AuthKey string `json:"auth_key" gorm:"not null"` AuthKey string `json:"auth_key" gorm:"not null"`
OPc string `json:"opc" gorm:"not null"` OPc string `json:"opc" gorm:"not null"`