mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor: user_name -> username
This commit is contained in:
parent
99e4327fdb
commit
0584979dbb
2 changed files with 4 additions and 4 deletions
|
@ -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',
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue