0
Fork 0
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:
Gao Sun 2023-10-08 13:47:22 +08:00
parent b81c573583
commit c1df440682
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
4 changed files with 6 additions and 6 deletions

View file

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

View file

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

View file

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

View file

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