Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: rm role_id in user.go (#16771)

Lynn7fa2a0b6079a
diff --git a/internal/entity/user.go b/internal/entity/user.go
index 4a421419cb..d30246c0a1 100644
--- a/internal/entity/user.go
+++ b/internal/entity/user.go
@@ -36,7 +36,6 @@ type User struct {
LoginChannel *string `gorm:"column:login_channel;index" json:"login_channel,omitempty"`
Status *string `gorm:"column:status;size:1;default:1;index" json:"status"`
IsSuperuser *bool `gorm:"column:is_superuser;index" json:"is_superuser,omitempty"`
- RoleID int64 `gorm:"column:role_id;index;default:1;not null;" json:"role_id,omitempty"`
BaseModel
}