generated by | SchemaCrawler 16.25.3 |
generated on | 2025-03-24 14:37:43 |
Contact details for book authors | ||
1 | ID | INTEGER NOT NULL |
2 | FIRSTNAME | VARCHAR(20) NOT NULL |
3 | LASTNAME | VARCHAR(20) NOT NULL |
4 | ADDRESS1 | VARCHAR(255) |
5 | ADDRESS2 | VARCHAR(255) |
6 | CITY | VARCHAR(50) |
7 | STATE | CHARACTER(2) |
8 | POSTALCODE | VARCHAR(10) |
9 | COUNTRY | VARCHAR(50) |
default 'USA' | ||
Primary Key | ||
[primary key] | ||
1 | ID | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | ID ←(0..many) BOOKAUTHORS.AUTHORID | |
Indexes | ||
[unique index] | ||
1 | ID | ascending |
[non-unique index] | ||
3 | LASTNAME | ascending |
2 | FIRSTNAME | ascending |
[non-unique index] | ||
6 | CITY | ascending |
7 | STATE | ascending |
8 | POSTALCODE | ascending |
9 | COUNTRY | ascending |
1 | ID | INTEGER |
2 | FIRSTNAME | VARCHAR(20) |
3 | LASTNAME | VARCHAR(20) |
Relationship between books and their authors, along with the latest updated information | ||
1 | BOOKID | INTEGER NOT NULL |
2 | AUTHORID | INTEGER NOT NULL |
3 | SOMEDATA | VARCHAR(30) |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | AUTHORID (0..many)→ AUTHORS.ID | |
[foreign key, with no action] | ||
1 | BOOKID (0..many)→ BOOKS.ID | |
Indexes | ||
[non-unique index] | ||
2 | AUTHORID | ascending |
[non-unique index] | ||
1 | BOOKID | ascending |
[unique index] | ||
1 | BOOKID | ascending |
2 | AUTHORID | ascending |
Details for published books | ||
1 | ID | INTEGER NOT NULL |
Unique (internal) id for book | ||
2 | TITLE | VARCHAR(255) NOT NULL |
Book title | ||
3 | DESCRIPTION | VARCHAR(255) |
Book description (Usually the blurb from the book jacket or promotional materials) | ||
4 | PUBLISHERID | INTEGER NOT NULL |
Foreign key to the book publisher | ||
5 | PUBLICATIONDATE | DATE |
Book publication date | ||
6 | PRICE | DOUBLE(64, 0) |
Current price for the book | ||
7 | PREVIOUSEDITIONID | INTEGER |
Primary Key | ||
[primary key] | ||
1 | ID | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | ID ←(0..many) SALES.BOOKID | |
[foreign key, with no action] | ||
1 | ID ←(0..many) BOOKAUTHORS.BOOKID | |
[foreign key, with no action] | ||
1 | ID ←(0..1) PREVIOUSEDITIONID | |
Indexes | ||
[unique index] | ||
1 | ID | ascending |
[unique index] | ||
7 | PREVIOUSEDITIONID | ascending |
[non-unique index] | ||
7 | PREVIOUSEDITIONID | ascending |
1 | "Id" | INTEGER NOT NULL |
2 | NAME | VARCHAR(20) |
Primary Key | ||
[primary key] | ||
1 | "Id" | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | "Id" ←(0..1) "Celebrity Updates"."Celebrity Id" | |
Indexes | ||
[unique index] | ||
1 | "Id" | ascending |
1 | "Celebrity Id" | INTEGER NOT NULL |
2 | "UPDATE" | VARCHAR(20) |
Primary Key | ||
[primary key] | ||
1 | "Celebrity Id" | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | "Celebrity Id" (0..1)→ "Celebrities"."Id" | |
Indexes | ||
[unique index] | ||
1 | "Celebrity Id" | ascending |
[non-unique index] | ||
1 | "Celebrity Id" | ascending |
1 | ID | INTEGER NOT NULL |
2 | DATA | CLOB |
3 | COUPONS | INTEGER ARRAY |
default ARRAY[] | ||
4 | BOOKS | VARCHAR(20) ARRAY[10] |
Primary Key | ||
[primary key] | ||
1 | ID | |
Indexes | ||
[unique index] | ||
1 | ID | ascending |
1 | ID | INTEGER NOT NULL |
2 | DATA | VALID_STRING(20) |
Primary Key | ||
[primary key] | ||
1 | ID | |
Indexes | ||
[unique index] | ||
1 | ID | ascending |
1 | ID | INTEGER NOT NULL |
2 | FIRSTNAME | NAME_TYPE(100) NOT NULL |
3 | LASTNAME | NAME_TYPE(100) NOT NULL |
4 | AGE | AGE_TYPE |
Primary Key | ||
[primary key] | ||
1 | ID | |
Indexes | ||
[unique index] | ||
1 | ID | ascending |
List of book publishers | ||
1 | ID | INTEGER NOT NULL |
auto-incremented | ||
Unique (internal) id for book publisher | ||
2 | PUBLISHER | VARCHAR(255) |
Name of book publisher | ||
Primary Key | ||
[primary key] | ||
1 | ID | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | ID ←(0..many) ΒΙΒΛΊΑ.ΕΚΔΌΤΗΣ | |
Indexes | ||
[unique index] | ||
1 | ID | ascending |
1 | ΜΟΝΑΔΙΚΌΣ | SMALLINT NOT NULL |
2 | ΤΊΤΛΟΣ | VARCHAR(255) NOT NULL |
3 | ΠΕΡΙΓΡΑΦΉ | VARCHAR(255) |
4 | ΕΚΔΌΤΗΣ | SMALLINT NOT NULL |
Primary Key | ||
[primary key] | ||
1 | ΜΟΝΑΔΙΚΌΣ | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | ΕΚΔΌΤΗΣ (0..many)→ PUBLISHERS.ID | |
Indexes | ||
[non-unique index] | ||
4 | ΕΚΔΌΤΗΣ | ascending |
[unique index] | ||
1 | ΜΟΝΑΔΙΚΌΣ | ascending |
Extra table with just a primary key | ||
1 | WRITERID | BIGINT NOT NULL |
2 | PUBLICATIONID | INTEGER NOT NULL |
3 | ID | INTEGER NOT NULL |
Primary Key | ||
[primary key] | ||
3 | ID | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | PUBLICATIONID (0..many)→ PUBLICATIONS.ID | |
[foreign key, with no action] | ||
1 | WRITERID (0..many)→ WRITERS.ID | |
Indexes | ||
[non-unique index] | ||
1 | WRITERID | ascending |
[unique index] | ||
3 | ID | ascending |
[non-unique index] | ||
2 | PUBLICATIONID | ascending |
1 | "Global Count" | INTEGER |
1 | ID | INTEGER NOT NULL |
2 | TITLE | VARCHAR(255) NOT NULL |
Publication title | ||
3 | DESCRIPTION | VARCHAR(255) |
4 | WRITERID | BIGINT NOT NULL |
5 | PUBLICATIONDATE | DATE |
6 | PRICE | DOUBLE(64, 0) |
7 | "UPDATE" | CLOB |
8 | PRESS_RELEASE | CLOB |
Primary Key | ||
[primary key] | ||
1 | ID | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | ID ←(0..many) EXTRA_PK.PUBLICATIONID | |
[foreign key, with no action] | ||
1 | WRITERID (0..many)→ WRITERS.ID | |
[foreign key, with no action] | ||
1 | ID ←(0..many) PUBLICATIONWRITERS.PUBLICATIONID | |
[foreign key, with no action] | ||
1 | ID ←(0..many) WRITERS.PUBLICATION_ID | |
Indexes | ||
[non-unique index] | ||
4 | WRITERID | ascending |
[unique index] | ||
1 | ID | ascending |
1 | PUBLICATIONID | INTEGER NOT NULL |
2 | WRITERID | BIGINT NOT NULL |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | PUBLICATIONID (0..many)→ PUBLICATIONS.ID | |
[foreign key, with no action] | ||
1 | WRITERID (0..many)→ WRITERS.ID | |
Indexes | ||
[non-unique index] | ||
2 | WRITERID | ascending |
[non-unique index] | ||
1 | PUBLICATIONID | ascending |
1 | ID | INTEGER NOT NULL |
2 | TITLE | VARCHAR(255) NOT NULL |
Primary Key | ||
[primary key] | ||
1 | ID | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | ID ←(0..1) ID | |
Indexes | ||
[unique index] | ||
1 | ID | ascending |
[non-unique index] | ||
1 | ID | ascending |
1 | ID | BIGINT NOT NULL |
2 | FIRSTNAME | VARCHAR(20) NOT NULL |
3 | LASTNAME | VARCHAR(20) NOT NULL |
4 | ADDRESS1 | VARCHAR(255) |
5 | ADDRESS2 | VARCHAR(255) NOT NULL |
6 | CITY | VARCHAR(50) |
7 | STATE | VARCHAR(2) |
8 | POSTALCODE | VARCHAR(10) |
9 | COUNTRY | VARCHAR(50) |
10 | PHONE1 | VARCHAR(10) |
11 | PHONE2 | VARCHAR(15) |
12 | EMAIL1 | VARCHAR(10) |
13 | EMAIL2 | INTEGER |
14 | FAX | VARCHAR(10) |
15 | FAX3 | INTEGER |
16 | HOMEEMAIL11 | VARCHAR(10) |
17 | HOMEEMAIL12 | VARCHAR(10) |
18 | PUBLICATION_ID | BIGINT NOT NULL |
Primary Key | ||
[primary key] | ||
1 | ID | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | ID ←(0..many) EXTRA_PK.WRITERID | |
[foreign key, with no action] | ||
1 | ID ←(0..many) PUBLICATIONS.WRITERID | |
[foreign key, with no action] | ||
1 | ID ←(0..many) PUBLICATIONWRITERS.WRITERID | |
[foreign key, with no action] | ||
1 | PUBLICATION_ID (0..many)→ PUBLICATIONS.ID | |
Indexes | ||
[unique index] | ||
1 | ID | ascending |
[non-unique index] | ||
18 | PUBLICATION_ID | ascending |
[non-unique index] | ||
6 | CITY | ascending |
7 | STATE | ascending |
[unique index] | ||
12 | EMAIL1 | ascending |
9 | COUNTRY | ascending |
[non-unique index] | ||
3 | LASTNAME | ascending |
2 | FIRSTNAME | ascending |
[non-unique index] | ||
6 | CITY | ascending |
7 | STATE | ascending |
8 | POSTALCODE | ascending |
9 | COUNTRY | ascending |
1 | CITY | VARCHAR(50) NOT NULL |
2 | STATE | VARCHAR(2) NOT NULL |
3 | POSTALCODE | VARCHAR(10) NOT NULL |
4 | COUNTRY | VARCHAR(50) NOT NULL |
Primary Key | ||
[primary key] | ||
3 | POSTALCODE | |
4 | COUNTRY | |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | POSTALCODE ←(0..many) SALES.POSTALCODE | |
2 | COUNTRY ←(0..many) SALES.COUNTRY | |
Indexes | ||
[unique index] | ||
3 | POSTALCODE | ascending |
4 | COUNTRY | ascending |
1 | POSTALCODE | VARCHAR(10) NOT NULL |
2 | COUNTRY | VARCHAR(50) NOT NULL |
3 | BOOKID | INTEGER |
4 | COUPON_ID | INTEGER |
5 | PERIODENDDATE | DATE |
6 | TOTALAMOUNT | DOUBLE(64, 0) |
7 | SALESDATAID | INTEGER |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | BOOKID (0..many)→ BOOKS.ID | |
[foreign key, with no action] | ||
1 | SALESDATAID (0..many)→ SALESDATA.SALESDATAID | |
[foreign key, with no action] | ||
1 | POSTALCODE (0..many)→ REGIONS.POSTALCODE | |
2 | COUNTRY (0..many)→ REGIONS.COUNTRY | |
Indexes | ||
[non-unique index] | ||
3 | BOOKID | ascending |
[non-unique index] | ||
7 | SALESDATAID | ascending |
[non-unique index] | ||
1 | POSTALCODE | ascending |
2 | COUNTRY | ascending |
1 | SALESDATAID | INTEGER |
2 | YEARLYAMOUNT | DOUBLE(64, 0) |
Foreign Keys | ||
[foreign key, with no action] | ||
1 | SALESDATAID ←(0..many) SALES.SALESDATAID | |
Indexes | ||
[unique index] | ||
1 | SALESDATAID | ascending |