fixed members login and permissions issues
This commit is contained in:
@@ -14,7 +14,7 @@ export const Users = pgTable('users', {
|
||||
role: userRolesEnum('role').default(USER_ROLES[0]),
|
||||
status: userStatusEnum('status').default(USER_STATUSES[0]),
|
||||
name: varchar('name', { length: 128 }),
|
||||
username: varchar('username', { length: 128 }),
|
||||
username: varchar('username', { length: 128 }).unique(),
|
||||
avatar: varchar('avatar', { length: 512000 }),
|
||||
passwordChangedAt: bigint('password_changed_at', { mode: 'number' }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user