0
Fork 0
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:
Gao Sun 2021-07-04 17:38:37 +08:00
parent 99e4327fdb
commit 0584979dbb
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31
2 changed files with 4 additions and 4 deletions

View file

@ -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',

View file

@ -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),