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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user