0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-27 21:39:16 -05:00

refactor(schemas): conform id length (#555)

This commit is contained in:
IceHe.xyz 2022-04-18 15:27:58 +08:00 committed by GitHub
parent f1576b9916
commit 77e0b4fec6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
create type application_type as enum ('Native', 'SPA', 'Traditional');
create table applications (
id varchar(128) not null,
id varchar(21) not null,
name varchar(256) not null,
description text,
type application_type not null,

View file

@ -1,7 +1,7 @@
create type passcode_type as enum ('SignIn', 'Register', 'ForgotPassword');
create table passcodes (
id varchar(128) not null,
id varchar(21) not null,
interaction_jti varchar(128) not null,
phone varchar(32),
email varchar(128),

View file

@ -1,5 +1,5 @@
create table resources (
id varchar(24) not null,
id varchar(21) not null,
name text not null,
indicator text not null unique, /* resource indicator also used as audience */
access_token_ttl bigint not null default(86400), /* expiration value in seconds, default is 24h */

View file

@ -1,5 +1,5 @@
create table settings (
id varchar(128) not null,
id varchar(21) not null,
custom_domain text,
admin_console jsonb /* @use AdminConsoleConfig */ not null,
primary key (id)

View file

@ -1,5 +1,5 @@
create table sign_in_experiences (
id varchar(128) not null,
id varchar(21) not null,
branding jsonb /* @use Branding */ not null default '{}'::jsonb,
language_info jsonb /* @use LanguageInfo */ not null default '{}'::jsonb,
terms_of_use jsonb /* @use TermsOfUse */ not null default '{}'::jsonb,

View file

@ -1,7 +1,7 @@
create type users_password_encryption_method as enum ('SaltAndPepper');
create table users (
id varchar(24) not null,
id varchar(12) not null,
username varchar(128) unique,
primary_email varchar(128) unique,
primary_phone varchar(128) unique,