-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add database documentation generation
- Loading branch information
Showing
9 changed files
with
373 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
src/main/kotlin/application/persistence/OrderRepository.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE TABLE orders | ||
( | ||
id UUID NOT NULL, | ||
customer_id UUID NOT NULL, | ||
ordered_at TIMESTAMP WITH TIME ZONE NOT NULL, | ||
dispatched_at TIMESTAMP WITH TIME ZONE, | ||
billing_address_id UUID NOT NULL, | ||
shipping_address_id UUID NOT NULL, | ||
status TEXT NOT NULL DEFAULT 'OPEN', | ||
PRIMARY KEY (id) | ||
); | ||
|
||
CREATE TABLE addresses | ||
( | ||
id UUID NOT NULL, | ||
customer_id UUID NOT NULL, | ||
name TEXT, | ||
street TEXT, | ||
city TEXT, | ||
zip_code TEXT, | ||
country CHAR(2), | ||
PRIMARY KEY (id) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.