fix: correct sessions table column name in applyRBACSchema to user_uuid

This commit is contained in:
Haitao Pan 2026-02-05 11:10:25 +08:00
parent dc348238f1
commit 4d5aae09ad

View File

@ -465,7 +465,7 @@ func applyRBACSchema(ctx context.Context, db *gorm.DB, driver string) error {
)`,
`CREATE TABLE IF NOT EXISTS public.sessions (
token TEXT PRIMARY KEY,
user_id TEXT NOT NULL,
user_uuid UUID NOT NULL,
expires_at TIMESTAMPTZ NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
)`,