| generated by | SchemaCrawler 16.21.3 |
| generated on | 2024-06-17 00:58:12 |
| database version | HSQL Database Engine 2.7.3 |
| driver version | HSQL Database Engine Driver 2.7.3 |
| Contact details for book authors | ||
| ID | INTEGER NOT NULL | |
| FIRSTNAME | VARCHAR(20) NOT NULL | |
| LASTNAME | VARCHAR(20) NOT NULL | |
| ADDRESS1 | VARCHAR(255) | |
| ADDRESS2 | VARCHAR(255) | |
| CITY | VARCHAR(50) | |
| STATE | CHARACTER(2) | |
| POSTALCODE | VARCHAR(10) | |
| COUNTRY | VARCHAR(50) | |
| Primary Key | ||
| PK_AUTHORS | [primary key] | |
| ID | ||
| Foreign Keys | ||
| Z_FK_AUTHOR | [foreign key, with no action] | |
| ID ←(0..many) PUBLIC.BOOKS.BOOKAUTHORS.AUTHORID | ||
| Indexes | ||
| PK_AUTHORS | [unique index] | |
| ID | ascending | |
| IDX_B_AUTHORS | [non-unique index] | |
| LASTNAME | ascending | |
| FIRSTNAME | ascending | |
| IDX_A_AUTHORS | [non-unique index] | |
| CITY | ascending | |
| STATE | ascending | |
| POSTALCODE | ascending | |
| COUNTRY | ascending | |
| ID | INTEGER | |
| FIRSTNAME | VARCHAR(20) | |
| LASTNAME | VARCHAR(20) |
| Relationship between books and their authors, along with the latest updated information | ||
| BOOKID | INTEGER NOT NULL | |
| AUTHORID | INTEGER NOT NULL | |
| SOMEDATA | VARCHAR(30) | |
| Foreign Keys | ||
| Z_FK_AUTHOR | [foreign key, with no action] | |
| AUTHORID (0..many)→ PUBLIC.BOOKS.AUTHORS.ID | ||
| SYS_FK_10118 | [foreign key, with no action] | |
| BOOKID (0..many)→ PUBLIC.BOOKS.BOOKS.ID | ||
| Indexes | ||
| Z_FK_AUTHOR | [non-unique index] | |
| AUTHORID | ascending | |
| SYS_FK_10118 | [non-unique index] | |
| BOOKID | ascending | |
| UIDX_BOOKAUTHORS | [unique index] | |
| BOOKID | ascending | |
| AUTHORID | ascending | |
| Details for published books | ||
| ID | INTEGER NOT NULL | |
| Unique (internal) id for book | ||
| TITLE | VARCHAR(255) NOT NULL | |
| Book title | ||
| DESCRIPTION | VARCHAR(255) | |
| Book description (Usually the blurb from the book jacket or promotional materials) | ||
| PUBLISHERID | INTEGER NOT NULL | |
| Foreign key to the book publisher | ||
| PUBLICATIONDATE | DATE | |
| Book publication date | ||
| PRICE | DOUBLE(64, 0) | |
| Current price for the book | ||
| PREVIOUSEDITIONID | INTEGER | |
| Primary Key | ||
| PK_BOOKS | [primary key] | |
| ID | ||
| Foreign Keys | ||
| FK_SALES_BOOK | [foreign key, with no action] | |
| ID ←(0..many) PUBLIC."PUBLISHER SALES".SALES.BOOKID | ||
| SYS_FK_10118 | [foreign key, with no action] | |
| ID ←(0..many) PUBLIC.BOOKS.BOOKAUTHORS.BOOKID | ||
| FK_PREVIOUSEDITION | [foreign key, with no action] | |
| ID ←(0..1) PREVIOUSEDITIONID | ||
| Indexes | ||
| PK_BOOKS | [unique index] | |
| ID | ascending | |
| U_PREVIOUSEDITION | [unique index] | |
| PREVIOUSEDITIONID | ascending | |
| FK_PREVIOUSEDITION | [non-unique index] | |
| PREVIOUSEDITIONID | ascending | |
| "Id" | INTEGER NOT NULL | |
| NAME | VARCHAR(20) | |
| Primary Key | ||
| "PK_Celebrities" | [primary key] | |
| "Id" | ||
| Foreign Keys | ||
| SYS_FK_10128 | [foreign key, with no action] | |
| "Id" ←(0..1) PUBLIC.BOOKS."Celebrity Updates"."Celebrity Id" | ||
| Indexes | ||
| "PK_Celebrities" | [unique index] | |
| "Id" | ascending | |
| "Celebrity Id" | INTEGER NOT NULL | |
| "UPDATE" | VARCHAR(20) | |
| Primary Key | ||
| "PK Celebrity Updates" | [primary key] | |
| "Celebrity Id" | ||
| Foreign Keys | ||
| SYS_FK_10128 | [foreign key, with no action] | |
| "Celebrity Id" (0..1)→ PUBLIC.BOOKS."Celebrities"."Id" | ||
| Indexes | ||
| "PK Celebrity Updates" | [unique index] | |
| "Celebrity Id" | ascending | |
| SYS_FK_10128 | [non-unique index] | |
| "Celebrity Id" | ascending | |
| ID | INTEGER NOT NULL | |
| DATA | CLOB | |
| COUPONS | INTEGER ARRAY | |
| BOOKS | VARCHAR(20) ARRAY[10] | |
| Primary Key | ||
| PK_COUPONS | [primary key] | |
| ID | ||
| Indexes | ||
| PK_COUPONS | [unique index] | |
| ID | ascending | |
| ID | INTEGER NOT NULL | |
| DATA | VALID_STRING(20) | |
| Primary Key | ||
| PK_CUSTOMERDATA | [primary key] | |
| ID | ||
| Indexes | ||
| PK_CUSTOMERDATA | [unique index] | |
| ID | ascending | |
| ID | INTEGER NOT NULL | |
| FIRSTNAME | NAME_TYPE(100) NOT NULL | |
| LASTNAME | NAME_TYPE(100) NOT NULL | |
| AGE | AGE_TYPE | |
| Primary Key | ||
| PK_CUSTOMERS | [primary key] | |
| ID | ||
| Indexes | ||
| PK_CUSTOMERS | [unique index] | |
| ID | ascending | |
| List of book publishers | ||
| ID | INTEGER NOT NULL | |
| auto-incremented | ||
| Unique (internal) id for book publisher | ||
| PUBLISHER | VARCHAR(255) | |
| Name of book publisher | ||
| Primary Key | ||
| SYS_PK_10124 | [primary key] | |
| ID | ||
| Foreign Keys | ||
| FK_ΒΙΒΛΊΑ_PUBLISHERS | [foreign key, with no action] | |
| ID ←(0..many) PUBLIC.BOOKS.ΒΙΒΛΊΑ.ΕΚΔΌΤΗΣ | ||
| Indexes | ||
| SYS_PK_10124 | [unique index] | |
| ID | ascending | |
| ΜΟΝΑΔΙΚΌΣ | SMALLINT NOT NULL | |
| ΤΊΤΛΟΣ | VARCHAR(255) NOT NULL | |
| ΠΕΡΙΓΡΑΦΉ | VARCHAR(255) | |
| ΕΚΔΌΤΗΣ | SMALLINT NOT NULL | |
| Primary Key | ||
| PK_ΒΙΒΛΊΑ | [primary key] | |
| ΜΟΝΑΔΙΚΌΣ | ||
| Foreign Keys | ||
| FK_ΒΙΒΛΊΑ_PUBLISHERS | [foreign key, with no action] | |
| ΕΚΔΌΤΗΣ (0..many)→ PUBLIC.BOOKS.PUBLISHERS.ID | ||
| Indexes | ||
| FK_ΒΙΒΛΊΑ_PUBLISHERS | [non-unique index] | |
| ΕΚΔΌΤΗΣ | ascending | |
| PK_ΒΙΒΛΊΑ | [unique index] | |
| ΜΟΝΑΔΙΚΌΣ | ascending | |
| Extra table with just a primary key | ||
| WRITERID | BIGINT NOT NULL | |
| PUBLICATIONID | INTEGER NOT NULL | |
| ID | INTEGER NOT NULL | |
| Primary Key | ||
| PK_EXTRA_PK | [primary key] | |
| ID | ||
| Foreign Keys | ||
| FK_PUBLICATION_JOIN | [foreign key, with no action] | |
| PUBLICATIONID (0..many)→ PUBLIC.FOR_LINT.PUBLICATIONS.ID | ||
| FK_WRITER_JOIN | [foreign key, with no action] | |
| WRITERID (0..many)→ PUBLIC.FOR_LINT.WRITERS.ID | ||
| Indexes | ||
| FK_WRITER_JOIN | [non-unique index] | |
| WRITERID | ascending | |
| PK_EXTRA_PK | [unique index] | |
| ID | ascending | |
| FK_PUBLICATION_JOIN | [non-unique index] | |
| PUBLICATIONID | ascending | |
| "Global Count" | INTEGER |
| ID | INTEGER NOT NULL | |
| TITLE | VARCHAR(255) NOT NULL | |
| Publication title | ||
| DESCRIPTION | VARCHAR(255) | |
| WRITERID | BIGINT NOT NULL | |
| PUBLICATIONDATE | DATE | |
| PRICE | DOUBLE(64, 0) | |
| "UPDATE" | CLOB | |
| PRESS_RELEASE | CLOB | |
| Primary Key | ||
| PK_PUBLICATIONS | [primary key] | |
| ID | ||
| Foreign Keys | ||
| FK_PUBLICATION_JOIN | [foreign key, with no action] | |
| ID ←(0..many) PUBLIC.FOR_LINT.EXTRA_PK.PUBLICATIONID | ||
| FK_PUBLICATIONS_WRITER | [foreign key, with no action] | |
| WRITERID (0..many)→ PUBLIC.FOR_LINT.WRITERS.ID | ||
| FK_PUBLICATION | [foreign key, with no action] | |
| ID ←(0..many) PUBLIC.FOR_LINT.PUBLICATIONWRITERS.PUBLICATIONID | ||
| FK_WRITERS_PUBLICATION | [foreign key, with no action] | |
| ID ←(0..many) PUBLIC.FOR_LINT.WRITERS.PUBLICATION_ID | ||
| Indexes | ||
| FK_PUBLICATIONS_WRITER | [non-unique index] | |
| WRITERID | ascending | |
| PK_PUBLICATIONS | [unique index] | |
| ID | ascending | |
| PUBLICATIONID | INTEGER NOT NULL | |
| WRITERID | BIGINT NOT NULL | |
| Foreign Keys | ||
| FK_PUBLICATION | [foreign key, with no action] | |
| PUBLICATIONID (0..many)→ PUBLIC.FOR_LINT.PUBLICATIONS.ID | ||
| FK_WRITER | [foreign key, with no action] | |
| WRITERID (0..many)→ PUBLIC.FOR_LINT.WRITERS.ID | ||
| Indexes | ||
| FK_WRITER | [non-unique index] | |
| WRITERID | ascending | |
| FK_PUBLICATION | [non-unique index] | |
| PUBLICATIONID | ascending | |
| ID | INTEGER NOT NULL | |
| TITLE | VARCHAR(255) NOT NULL | |
| Primary Key | ||
| PK_SELFREFERENCE | [primary key] | |
| ID | ||
| Foreign Keys | ||
| FK_SELFREFERENCE | [foreign key, with no action] | |
| ID ←(0..1) ID | ||
| Indexes | ||
| PK_SELFREFERENCE | [unique index] | |
| ID | ascending | |
| FK_SELFREFERENCE | [non-unique index] | |
| ID | ascending | |
| ID | BIGINT NOT NULL | |
| FIRSTNAME | VARCHAR(20) NOT NULL | |
| LASTNAME | VARCHAR(20) NOT NULL | |
| ADDRESS1 | VARCHAR(255) | |
| ADDRESS2 | VARCHAR(255) NOT NULL | |
| CITY | VARCHAR(50) | |
| STATE | VARCHAR(2) | |
| POSTALCODE | VARCHAR(10) | |
| COUNTRY | VARCHAR(50) | |
| PHONE1 | VARCHAR(10) | |
| PHONE2 | VARCHAR(15) | |
| EMAIL1 | VARCHAR(10) | |
| EMAIL2 | INTEGER | |
| FAX | VARCHAR(10) | |
| FAX3 | INTEGER | |
| HOMEEMAIL11 | VARCHAR(10) | |
| HOMEEMAIL12 | VARCHAR(10) | |
| PUBLICATION_ID | BIGINT NOT NULL | |
| Primary Key | ||
| PK_WRITERS | [primary key] | |
| ID | ||
| Foreign Keys | ||
| FK_WRITER_JOIN | [foreign key, with no action] | |
| ID ←(0..many) PUBLIC.FOR_LINT.EXTRA_PK.WRITERID | ||
| FK_PUBLICATIONS_WRITER | [foreign key, with no action] | |
| ID ←(0..many) PUBLIC.FOR_LINT.PUBLICATIONS.WRITERID | ||
| FK_WRITER | [foreign key, with no action] | |
| ID ←(0..many) PUBLIC.FOR_LINT.PUBLICATIONWRITERS.WRITERID | ||
| FK_WRITERS_PUBLICATION | [foreign key, with no action] | |
| PUBLICATION_ID (0..many)→ PUBLIC.FOR_LINT.PUBLICATIONS.ID | ||
| Indexes | ||
| PK_WRITERS | [unique index] | |
| ID | ascending | |
| FK_WRITERS_PUBLICATION | [non-unique index] | |
| PUBLICATION_ID | ascending | |
| IDX_A1_WRITERS | [non-unique index] | |
| CITY | ascending | |
| STATE | ascending | |
| IDX_U_WRITERS | [unique index] | |
| EMAIL1 | ascending | |
| COUNTRY | ascending | |
| IDX_B_WRITERS | [non-unique index] | |
| LASTNAME | ascending | |
| FIRSTNAME | ascending | |
| IDX_A_WRITERS | [non-unique index] | |
| CITY | ascending | |
| STATE | ascending | |
| POSTALCODE | ascending | |
| COUNTRY | ascending | |
| CITY | VARCHAR(50) NOT NULL | |
| STATE | VARCHAR(2) NOT NULL | |
| POSTALCODE | VARCHAR(10) NOT NULL | |
| COUNTRY | VARCHAR(50) NOT NULL | |
| Primary Key | ||
| PK_CUSTOMERS | [primary key] | |
| POSTALCODE | ||
| COUNTRY | ||
| Foreign Keys | ||
| FK_SALES_REGIONS | [foreign key, with no action] | |
| POSTALCODE ←(0..many) PUBLIC."PUBLISHER SALES".SALES.POSTALCODE | ||
| COUNTRY ←(0..many) PUBLIC."PUBLISHER SALES".SALES.COUNTRY | ||
| Indexes | ||
| PK_CUSTOMERS | [unique index] | |
| POSTALCODE | ascending | |
| COUNTRY | ascending | |
| POSTALCODE | VARCHAR(10) NOT NULL | |
| COUNTRY | VARCHAR(50) NOT NULL | |
| BOOKID | INTEGER | |
| COUPON_ID | INTEGER | |
| PERIODENDDATE | DATE | |
| TOTALAMOUNT | DOUBLE(64, 0) | |
| SALESDATAID | INTEGER | |
| Foreign Keys | ||
| FK_SALES_BOOK | [foreign key, with no action] | |
| BOOKID (0..many)→ PUBLIC.BOOKS.BOOKS.ID | ||
| FK_SALES_SALESDATA | [foreign key, with no action] | |
| SALESDATAID (0..many)→ PUBLIC."PUBLISHER SALES".SALESDATA.SALESDATAID | ||
| FK_SALES_REGIONS | [foreign key, with no action] | |
| POSTALCODE (0..many)→ PUBLIC."PUBLISHER SALES".REGIONS.POSTALCODE | ||
| COUNTRY (0..many)→ PUBLIC."PUBLISHER SALES".REGIONS.COUNTRY | ||
| Indexes | ||
| FK_SALES_BOOK | [non-unique index] | |
| BOOKID | ascending | |
| FK_SALES_SALESDATA | [non-unique index] | |
| SALESDATAID | ascending | |
| FK_SALES_REGIONS | [non-unique index] | |
| POSTALCODE | ascending | |
| COUNTRY | ascending | |
| SALESDATAID | INTEGER | |
| YEARLYAMOUNT | DOUBLE(64, 0) | |
| Foreign Keys | ||
| FK_SALES_SALESDATA | [foreign key, with no action] | |
| SALESDATAID ←(0..many) PUBLIC."PUBLISHER SALES".SALES.SALESDATAID | ||
| Indexes | ||
| UQ_CUSTOMERS | [unique index] | |
| SALESDATAID | ascending | |
| PUBLISHER | CHARACTER VARYING, out | |
| [specific name] | ||
| NEW_PUBLISHER_FORCE_VALUE | ||
| NEWPUBLISHER | CHARACTER VARYING, in | |
| PUBLISHER | CHARACTER VARYING, out | |
| [specific name] | ||
| NEW_PUBLISHER_10151 | ||
| ONE | INTEGER, in | |
| [specific name] | ||
| CUSTOMADD_10153 | ||
| ONE | INTEGER, in | |
| TWO | INTEGER, in | |
| [specific name] | ||
| CUSTOMADD_10152 | ||
| B_COUNT | INTEGER, in | |
| B_OFFSET | INTEGER, in | |
| L_ID | BIGINT, in | |
| [specific name] | ||
| ALLOC_BLOCKS_10071 | ||
| B_COUNT | INTEGER, in | |
| B_OFFSET | INTEGER, in | |
| L_ID | BIGINT, in | |
| [specific name] | ||
| ALLOC_SINGLE_BLOCK_10074 | ||
| B_ADDR | INTEGER, in | |
| B_COUNT | INTEGER, in | |
| B_OFFSET | INTEGER, in | |
| L_ID | BIGINT, in | |
| [specific name] | ||
| CONVERT_BLOCK_10029 | ||
| B_ADDR | INTEGER, in/ out | |
| B_COUNT | INTEGER, in | |
| [specific name] | ||
| CREATE_EMPTY_BLOCK_10063 | ||
| L_ID | BIGINT, in | |
| B_OFFSET | INTEGER, in | |
| B_LIMIT | INTEGER, in | |
| TX_ID | BIGINT, in | |
| [specific name] | ||
| DELETE_BLOCKS_10060 | ||
| L_ID | BIGINT, in | |
| TX_ID | BIGINT, in | |
| [specific name] | ||
| DELETE_LOB_10031 | ||
| L_IDS | BIGINT ARRAY, in | |
| [specific name] | ||
| DELETE_UNUSED_10046 | ||
| LIMIT_ID | BIGINT, in | |
| TOTAL_COUNT | INTEGER, out | |
| [specific name] | ||
| DELETE_UNUSED_LOBS_10058 | ||
| B_OFFSET | INTEGER, in | |
| L_ID | BIGINT, in | |
| [specific name] | ||
| DIVIDE_BLOCK_10066 | ||
| [specific name] | ||
| MERGE_EMPTY_BLOCKS_10079 | ||
| BIGINT | [data type] | |
| defined with no parameters | ||
| nullable | ||
| auto-incrementable | ||
| searchable except with where .. like | ||
| BINARY | [data type] | |
| defined with LENGTH | ||
| nullable | ||
| not auto-incrementable | ||
| searchable | ||
| BIT | [data type] | |
| defined with LENGTH | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| BLOB | [data type] | |
| defined with LENGTH | ||
| nullable | ||
| not auto-incrementable | ||
| not searchable | ||
| BOOLEAN | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| CHARACTER | [data type] | |
| defined with LENGTH | ||
| nullable | ||
| not auto-incrementable | ||
| searchable | ||
| CLOB | [data type] | |
| defined with LENGTH | ||
| nullable | ||
| not auto-incrementable | ||
| not searchable | ||
| DATE | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| DECIMAL | [data type] | |
| defined with PRECISION,SCALE | ||
| nullable | ||
| auto-incrementable | ||
| searchable except with where .. like | ||
| DOUBLE | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| FLOAT | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| INTEGER | [data type] | |
| defined with no parameters | ||
| nullable | ||
| auto-incrementable | ||
| searchable except with where .. like | ||
| NUMERIC | [data type] | |
| defined with PRECISION,SCALE | ||
| nullable | ||
| auto-incrementable | ||
| searchable except with where .. like | ||
| NVARCHAR | [data type] | |
| defined with LENGTH | ||
| nullable | ||
| not auto-incrementable | ||
| searchable | ||
| OTHER | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| REAL | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| SMALLINT | [data type] | |
| defined with no parameters | ||
| nullable | ||
| auto-incrementable | ||
| searchable except with where .. like | ||
| TIME | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| TIMESTAMP | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| TIMESTAMP WITH TIME ZONE | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| TIME WITH TIME ZONE | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable except with where .. like | ||
| TINYINT | [data type] | |
| defined with no parameters | ||
| nullable | ||
| auto-incrementable | ||
| searchable except with where .. like | ||
| UUID | [data type] | |
| defined with no parameters | ||
| nullable | ||
| not auto-incrementable | ||
| searchable | ||
| VARBINARY | [data type] | |
| defined with LENGTH | ||
| nullable | ||
| not auto-incrementable | ||
| searchable | ||
| VARCHAR | [data type] | |
| defined with LENGTH | ||
| nullable | ||
| not auto-incrementable | ||
| searchable | ||
| PUBLIC.BOOKS.AGE_TYPE | [user defined data type] | |
| defined with no parameters | ||
| not nullable | ||
| not auto-incrementable | ||
| not searchable | ||
| based on | ||
| PUBLIC.BOOKS."CHARACTER VARYING" | [user defined data type] | |
| defined with no parameters | ||
| not nullable | ||
| not auto-incrementable | ||
| not searchable | ||
| based on | ||
| PUBLIC.BOOKS."INTEGER ARRAY" | [user defined data type] | |
| defined with no parameters | ||
| not nullable | ||
| not auto-incrementable | ||
| not searchable | ||
| based on | ||
| PUBLIC.BOOKS.NAME_TYPE | [user defined data type] | |
| defined with no parameters | ||
| not nullable | ||
| not auto-incrementable | ||
| not searchable | ||
| based on | ||
| PUBLIC.BOOKS.VALID_STRING | [user defined data type] | |
| defined with no parameters | ||
| not nullable | ||
| not auto-incrementable | ||
| not searchable | ||
| based on | ||
| PUBLIC.BOOKS."VARCHAR(20) ARRAY[10]" | [user defined data type] | |
| defined with no parameters | ||
| not nullable | ||
| not auto-incrementable | ||
| not searchable | ||
| based on | ||
| PUBLIC.SYSTEM_LOBS."BIGINT ARRAY" | [user defined data type] | |
| defined with no parameters | ||
| not nullable | ||
| not auto-incrementable | ||
| not searchable | ||
| based on | ||
| database product name | HSQL Database Engine |
| database product version | 2.7.3 |
| database user name | SA |
| connection url | jdbc:hsqldb:hsql://0.0.0.0:65450/schemacrawler65450 |
| driver name | HSQL Database Engine Driver |
| driver version | 2.7.3 |
| driver class name | org.hsqldb.jdbc.JDBCDriver |
| is JDBC compliant | true |
| supported JDBC version | 4.2 |