-
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
1 parent
23c45be
commit 7a1fffe
Showing
5 changed files
with
22 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
create table tb_sales (id int8 generated by default as identity, amount float8, date date, deals int4, visited int4, seller_id int8, primary key (id)); | ||
create table tb_sellers (id int8 generated by default as identity, name varchar(255), primary key (id)); | ||
alter table if exists tb_sales add constraint FKp0nn0oixeiw2fq3jivj6vnsu foreign key (seller_id) references tb_sellers; | ||
create table tb_sales (id int8 generated by default as identity, amount float8, date date, deals int4, visited int4, seller_id int8, primary key (id)); | ||
create table tb_sellers (id int8 generated by default as identity, name varchar(255), primary key (id)); | ||
alter table if exists tb_sales add constraint FKp0nn0oixeiw2fq3jivj6vnsu foreign key (seller_id) references tb_sellers; |
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,11 @@ | ||
#spring.jpa.properties.javax.persistence.schema-generation.create-source=metadata | ||
#spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create | ||
#spring.jpa.properties.javax.persistence.schema-generation.scripts.create-target=create.sql | ||
#spring.jpa.properties.hibernate.hbm2ddl.delimiter=; | ||
|
||
spring.datasource.url=jdbc:postgresql://localhost:5432/dsvendas | ||
spring.datasource.username=postgres | ||
spring.datasource.password=root | ||
|
||
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true | ||
spring.jpa.hibernate.ddl-auto=none |
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 @@ | ||
spring.datasource.url=${DATABASE_URL} |
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,2 +1,3 @@ | ||
spring.jpa.open-in-view=false | ||
spring.profiles.active=test | ||
spring.profiles.active=${APP_PROFILE:test} | ||
|
||
spring.jpa.open-in-view=false |
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 @@ | ||
java.runtime.version=11 |