Skip to content

Commit

Permalink
revert to VARCHAR
Browse files Browse the repository at this point in the history
  • Loading branch information
mrFlick72 committed Jun 23, 2024
1 parent 64ea2cf commit 8c8115b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/main/resources/data/schema.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE TABLE ROLE
(
name VARCHAR2(64) not null PRIMARY KEY,
description VARCHAR2(255) not null DEFAULT ''
name varchar(64) not null PRIMARY KEY,
description varchar(255) not null DEFAULT ''
);


Expand All @@ -12,25 +12,25 @@ CREATE TABLE ACCOUNT
credentials_non_expired boolean not null default false,
enabled boolean not null default false,

username VARCHAR2(255) not null primary key,
password VARCHAR2(255) not null,
username varchar(255) not null primary key,
password varchar(255) not null,

email VARCHAR2(255) not null unique,
email varchar(255) not null unique,
email_verified boolean not null default false,

first_name VARCHAR2(255) not null default '',
last_name VARCHAR2(255) not null default '',
first_name varchar(255) not null default '',
last_name varchar(255) not null default '',

birth_date date,
phone VARCHAR2(30) default '',
locale VARCHAR2(10) default 'en',
mandatory_action VARCHAR2(100) not null default 'NO_ACTION'
phone varchar(30) default '',
locale varchar(10) default 'en',
mandatory_action varchar(100) not null default 'NO_ACTION'
);

CREATE TABLE ACCOUNT_ROLE
(
account_username VARCHAR2(255) not null,
role_name VARCHAR2(64) not null,
account_username varchar(255) not null,
role_name varchar(64) not null,


FOREIGN KEY (account_username) REFERENCES ACCOUNT(username) on delete cascade,
Expand Down

0 comments on commit 8c8115b

Please sign in to comment.