mirror of
https://github.com/logto-io/logto.git
synced 2025-01-13 21:30:30 -05:00
refactor(schemas): make description nullable
This commit is contained in:
parent
b81c573583
commit
c1df440682
4 changed files with 6 additions and 6 deletions
|
@ -43,7 +43,7 @@ const alteration: AlterationScript = {
|
||||||
/** The organization's name for display. */
|
/** The organization's name for display. */
|
||||||
name varchar(128) not null,
|
name varchar(128) not null,
|
||||||
/** A brief description of the organization. */
|
/** A brief description of the organization. */
|
||||||
description varchar(256) not null,
|
description varchar(256),
|
||||||
/** When the organization was created. */
|
/** When the organization was created. */
|
||||||
created_at timestamptz not null default(now()),
|
created_at timestamptz not null default(now()),
|
||||||
primary key (id)
|
primary key (id)
|
||||||
|
@ -63,7 +63,7 @@ const alteration: AlterationScript = {
|
||||||
/** The organization role's name, unique within the organization template. */
|
/** The organization role's name, unique within the organization template. */
|
||||||
name varchar(128) not null,
|
name varchar(128) not null,
|
||||||
/** A brief description of the organization role. */
|
/** A brief description of the organization role. */
|
||||||
description varchar(256) not null,
|
description varchar(256),
|
||||||
primary key (id),
|
primary key (id),
|
||||||
constraint organization_roles__name
|
constraint organization_roles__name
|
||||||
unique (tenant_id, name)
|
unique (tenant_id, name)
|
||||||
|
@ -83,7 +83,7 @@ const alteration: AlterationScript = {
|
||||||
/** The organization scope's name, unique within the organization template. */
|
/** The organization scope's name, unique within the organization template. */
|
||||||
name varchar(128) not null,
|
name varchar(128) not null,
|
||||||
/** A brief description of the organization scope. */
|
/** A brief description of the organization scope. */
|
||||||
description varchar(256) not null,
|
description varchar(256),
|
||||||
primary key (id),
|
primary key (id),
|
||||||
constraint organization_scopes__name
|
constraint organization_scopes__name
|
||||||
unique (tenant_id, name)
|
unique (tenant_id, name)
|
||||||
|
|
|
@ -9,7 +9,7 @@ create table organization_roles (
|
||||||
/** The organization role's name, unique within the organization template. */
|
/** The organization role's name, unique within the organization template. */
|
||||||
name varchar(128) not null,
|
name varchar(128) not null,
|
||||||
/** A brief description of the organization role. */
|
/** A brief description of the organization role. */
|
||||||
description varchar(256) not null,
|
description varchar(256),
|
||||||
primary key (id),
|
primary key (id),
|
||||||
constraint organization_roles__name
|
constraint organization_roles__name
|
||||||
unique (tenant_id, name)
|
unique (tenant_id, name)
|
||||||
|
|
|
@ -9,7 +9,7 @@ create table organization_scopes (
|
||||||
/** The organization scope's name, unique within the organization template. */
|
/** The organization scope's name, unique within the organization template. */
|
||||||
name varchar(128) not null,
|
name varchar(128) not null,
|
||||||
/** A brief description of the organization scope. */
|
/** A brief description of the organization scope. */
|
||||||
description varchar(256) not null,
|
description varchar(256),
|
||||||
primary key (id),
|
primary key (id),
|
||||||
constraint organization_scopes__name
|
constraint organization_scopes__name
|
||||||
unique (tenant_id, name)
|
unique (tenant_id, name)
|
||||||
|
|
|
@ -9,7 +9,7 @@ create table organizations (
|
||||||
/** The organization's name for display. */
|
/** The organization's name for display. */
|
||||||
name varchar(128) not null,
|
name varchar(128) not null,
|
||||||
/** A brief description of the organization. */
|
/** A brief description of the organization. */
|
||||||
description varchar(256) not null,
|
description varchar(256),
|
||||||
/** When the organization was created. */
|
/** When the organization was created. */
|
||||||
created_at timestamptz not null default(now()),
|
created_at timestamptz not null default(now()),
|
||||||
primary key (id)
|
primary key (id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue