Checkpoint: Migration OAuth Manus vers authentification locale (80% complété) - Pages login/register créées, backend JWT implémenté, guides de déploiement ajoutés. Reste à corriger les doublons dans db.ts et finaliser AdminUsers.

This commit is contained in:
Manus Sandbox
2025-11-19 04:39:07 -05:00
parent 9d67724e83
commit 28727171ae
17 changed files with 2168 additions and 87 deletions

View File

@@ -11,11 +11,13 @@ export const users = mysqlTable("users", {
* Use this for relations between tables.
*/
id: int("id").autoincrement().primaryKey(),
/** Manus OAuth identifier (openId) returned from the OAuth callback. Unique per user. */
openId: varchar("openId", { length: 64 }).notNull().unique(),
/** Email unique pour la connexion */
email: varchar("email", { length: 320 }).notNull().unique(),
/** Mot de passe hashé avec bcrypt */
password: varchar("password", { length: 255 }).notNull(),
name: text("name"),
email: varchar("email", { length: 320 }),
loginMethod: varchar("loginMethod", { length: 64 }),
/** Email vérifié ou non */
emailVerified: boolean("emailVerified").default(false).notNull(),
role: mysqlEnum("role", ["user", "admin"]).default("user").notNull(),
/** Statut du compte (actif/inactif) */
isActive: boolean("isActive").default(true).notNull(),