-
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.
- Loading branch information
yingtingxu
committed
Jun 7, 2024
1 parent
e78cca6
commit 1b0acc5
Showing
5 changed files
with
28 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
DROP TABLE IF EXISTS book | ||
CREATE TABLE book ( | ||
id BIGSERIAL PRIMARY KEY NOT NULL, | ||
isbn varchar(255) UNIQUE NOT NULL, | ||
title varchar(255) NOT NULL, | ||
author varchar(255) NOT NULL, | ||
price float8 NOT NULL, | ||
created_at timestamp NOT NULL, | ||
last_modified_at timestamp NOT NULL, | ||
version integer NOT NULL | ||
CREATE TABLE book | ||
( | ||
id BIGSERIAL PRIMARY KEY NOT NULL, | ||
isbn varchar(255) UNIQUE NOT NULL, | ||
title varchar(255) NOT NULL, | ||
author varchar(255) NOT NULL, | ||
price float8 NOT NULL, | ||
created_at timestamp NOT NULL, | ||
last_modified_at timestamp NOT NULL, | ||
version integer NOT NULL | ||
); |
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 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 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
sql: | ||
init: | ||
mode: always | ||
|
||
spring: | ||
datasource: | ||
url: jdbc:tc:postgresql:14.10:/// |
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,12 @@ | ||
DROP TABLE IF EXISTS book | ||
CREATE TABLE book | ||
( | ||
id BIGSERIAL PRIMARY KEY NOT NULL, | ||
isbn varchar(255) UNIQUE NOT NULL, | ||
title varchar(255) NOT NULL, | ||
author varchar(255) NOT NULL, | ||
price float8 NOT NULL, | ||
created_at timestamp NOT NULL, | ||
last_modified_at timestamp NOT NULL, | ||
version integer NOT NULL | ||
); |