Initial commit

This commit is contained in:
2022-09-05 04:13:18 -03:00
commit c0580118c1
59 changed files with 3122 additions and 0 deletions

View 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

View File

@@ -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

View File

@@ -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)
);

View File

@@ -0,0 +1,6 @@
databaseChangeLog:
- include:
file: db/changelog/client/db.changelog-client.yml