Initial commit
This commit is contained in:
42
src/main/resources/application.yml
Normal file
42
src/main/resources/application.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
com:
|
||||
hideyoshi:
|
||||
frontEndPath: ${FRONTEND_PATH}}
|
||||
frontendConnectionType: ${FRONTEND_CONNECTION_TYPE}}
|
||||
tokenSecret: ${TOKEN_SECRET}
|
||||
accessTokenDuration: ${ACCESS_TOKEN_DURATION}
|
||||
refreshTokenDuration: ${REFRESH_TOKEN_DURATION}
|
||||
defaultUser:
|
||||
fullName: ${DEFAULT_USER_FULLNAME}
|
||||
email: ${DEFAULT_USER_EMAIL}
|
||||
username: ${DEFAULT_USER_USERNAME}
|
||||
password: ${DEFAULT_USER_PASSWORD}
|
||||
|
||||
|
||||
server:
|
||||
port: ${PORT}
|
||||
|
||||
spring:
|
||||
|
||||
datasource:
|
||||
url: jdbc:${DATABASE_URL}
|
||||
username: ${DATABASE_USERNAME}
|
||||
password: ${DATABASE_PASSWORD}
|
||||
|
||||
session:
|
||||
store:
|
||||
type: redis
|
||||
persistent: true
|
||||
|
||||
redis:
|
||||
host: ${REDIS_URL}
|
||||
port: ${REDIS_PORT}
|
||||
password: ${REDIS_PASSWORD}
|
||||
|
||||
jpa:
|
||||
open-in-view: false
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
properties:
|
||||
hibernate:
|
||||
dialect: org.hibernate.dialect.PostgreSQLDialect
|
||||
format_sql: true
|
||||
@@ -0,0 +1,11 @@
|
||||
databaseChangeLog:
|
||||
|
||||
- changeSet:
|
||||
id: db-table-model-client
|
||||
author: vitor.h.n.batista@gmail.com
|
||||
changes:
|
||||
- sqlFile:
|
||||
encoding: utf8
|
||||
path: sqls/db-table-model-client.sql
|
||||
relativeToChangelogFile: true
|
||||
dbms: postgresql
|
||||
@@ -0,0 +1,21 @@
|
||||
CREATE SCHEMA IF NOT EXISTS auth;
|
||||
|
||||
CREATE SEQUENCE IF NOT EXISTS auth.user_seq
|
||||
INCREMENT 1
|
||||
MINVALUE 1
|
||||
MAXVALUE 9223372036854775807
|
||||
START 1
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS auth.user (
|
||||
id BIGINT NOT NULL DEFAULT NEXTVAL('auth.user_seq'),
|
||||
full_name VARCHAR(255) NOT NULL,
|
||||
email VARCHAR(255) NOT NULL,
|
||||
username VARCHAR(20) NOT NULL,
|
||||
password VARCHAR(100) NOT NULL,
|
||||
roles VARCHAR(50) NOT NULL DEFAULT 'ROLE_USER',
|
||||
|
||||
CONSTRAINT client_primary_key PRIMARY KEY (id),
|
||||
CONSTRAINT client_email_unique UNIQUE (email),
|
||||
CONSTRAINT client_username_unique UNIQUE (username)
|
||||
);
|
||||
6
src/main/resources/db/changelog/db.changelog-master.yaml
Normal file
6
src/main/resources/db/changelog/db.changelog-master.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
databaseChangeLog:
|
||||
|
||||
- include:
|
||||
file: db/changelog/client/db.changelog-client.yml
|
||||
Reference in New Issue
Block a user