feat(user): add endpoint and logic for updating user rules

This commit is contained in:
Chang lue Tsen
2025-11-24 09:05:49 -05:00
parent b29e5c8cb5
commit 429e535dd4
9 changed files with 104 additions and 4 deletions
+1
View File
@@ -25,6 +25,7 @@ type User struct {
EnableTradeNotify *bool `gorm:"default:false;not null;comment:Enable Trade Notifications"`
AuthMethods []AuthMethods `gorm:"foreignKey:UserId;references:Id"`
UserDevices []Device `gorm:"foreignKey:UserId;references:Id"`
Rules string `gorm:"type:TEXT;comment:User Rules"`
CreatedAt time.Time `gorm:"<-:create;comment:Creation Time"`
UpdatedAt time.Time `gorm:"comment:Update Time"`
}