diff --git a/packages/schemas/src/db-entries/user.ts b/packages/schemas/src/db-entries/user.ts index ff31190e9..370fad704 100644 --- a/packages/schemas/src/db-entries/user.ts +++ b/packages/schemas/src/db-entries/user.ts @@ -4,7 +4,7 @@ import { PasswordEncryptionMethod } from './custom-types'; export type UserDBEntry = { id: string; - userName?: string; + username?: string; primaryEmail?: string; primaryPhone?: string; passwordEncrypted?: string; @@ -16,7 +16,7 @@ export const Users = Object.freeze({ table: 'users', fields: { id: 'id', - userName: 'user_name', + username: 'username', primaryEmail: 'primary_email', primaryPhone: 'primary_phone', passwordEncrypted: 'password_encrypted', @@ -25,7 +25,7 @@ export const Users = Object.freeze({ }, fieldKeys: [ 'id', - 'userName', + 'username', 'primaryEmail', 'primaryPhone', 'passwordEncrypted', diff --git a/packages/schemas/tables/users.sql b/packages/schemas/tables/users.sql index 16437dbef..8b4adcca3 100644 --- a/packages/schemas/tables/users.sql +++ b/packages/schemas/tables/users.sql @@ -2,7 +2,7 @@ create type password_encryption_method as enum ('SaltAndPepper'); create table users ( id varchar(24) not null, - user_name varchar(128) unique, + username varchar(128) unique, primary_email varchar(128) unique, primary_phone varchar(128) unique, password_encrypted varchar(128),