Add user management for activation, deactivation, and deletion

Introduce API endpoints and storage methods for setting user passwords, soft deactivation (hiding availability), and hard deletion (removing all associated future data).

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 3a22ac80-cd1d-4441-9e36-f24fc2f4c3de
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3478f7c3-db8c-4fca-9165-3adbdf1b5829/3a22ac80-cd1d-4441-9e36-f24fc2f4c3de/gBqmpbl
This commit is contained in:
spliceboti
2025-09-12 20:36:14 +00:00
parent 91706d07c7
commit 60b5735588
3 changed files with 118 additions and 5 deletions
+1
View File
@@ -43,6 +43,7 @@ export const users = pgTable("users", {
role: userRoleEnum("role").default("dj").notNull(),
isActive: boolean("is_active").default(true).notNull(),
maxEventsPerMonth: integer("max_events_per_month").default(2).notNull(),
password: varchar("password"),
tempPassword: varchar("temp_password"),
needsPasswordChange: boolean("needs_password_change").default(false),
createdAt: timestamp("created_at").defaultNow(),