mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -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. */
|
||||
name varchar(128) not null,
|
||||
/** A brief description of the organization. */
|
||||
description varchar(256) not null,
|
||||
description varchar(256),
|
||||
/** When the organization was created. */
|
||||
created_at timestamptz not null default(now()),
|
||||
primary key (id)
|
||||
|
@ -63,7 +63,7 @@ const alteration: AlterationScript = {
|
|||
/** The organization role's name, unique within the organization template. */
|
||||
name varchar(128) not null,
|
||||
/** A brief description of the organization role. */
|
||||
description varchar(256) not null,
|
||||
description varchar(256),
|
||||
primary key (id),
|
||||
constraint organization_roles__name
|
||||
unique (tenant_id, name)
|
||||
|
@ -83,7 +83,7 @@ const alteration: AlterationScript = {
|
|||
/** The organization scope's name, unique within the organization template. */
|
||||
name varchar(128) not null,
|
||||
/** A brief description of the organization scope. */
|
||||
description varchar(256) not null,
|
||||
description varchar(256),
|
||||
primary key (id),
|
||||
constraint organization_scopes__name
|
||||
unique (tenant_id, name)
|
||||
|
|
|
@ -9,7 +9,7 @@ create table organization_roles (
|
|||
/** The organization role's name, unique within the organization template. */
|
||||
name varchar(128) not null,
|
||||
/** A brief description of the organization role. */
|
||||
description varchar(256) not null,
|
||||
description varchar(256),
|
||||
primary key (id),
|
||||
constraint organization_roles__name
|
||||
unique (tenant_id, name)
|
||||
|
|
|
@ -9,7 +9,7 @@ create table organization_scopes (
|
|||
/** The organization scope's name, unique within the organization template. */
|
||||
name varchar(128) not null,
|
||||
/** A brief description of the organization scope. */
|
||||
description varchar(256) not null,
|
||||
description varchar(256),
|
||||
primary key (id),
|
||||
constraint organization_scopes__name
|
||||
unique (tenant_id, name)
|
||||
|
|
|
@ -9,7 +9,7 @@ create table organizations (
|
|||
/** The organization's name for display. */
|
||||
name varchar(128) not null,
|
||||
/** A brief description of the organization. */
|
||||
description varchar(256) not null,
|
||||
description varchar(256),
|
||||
/** When the organization was created. */
|
||||
created_at timestamptz not null default(now()),
|
||||
primary key (id)
|
||||
|
|
Loading…
Reference in a new issue