generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 10
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
0e4c608
commit 3c535a3
Showing
13 changed files
with
149 additions
and
12 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 +1 @@ | ||
CREATE TYPE gender_enum AS ENUM ('MALE', 'FEMALE'); | ||
--CREATE TYPE gender_enum AS ENUM ('MALE', 'FEMALE'); |
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
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
3 changes: 2 additions & 1 deletion
3
src/main/java/com/softserve/teachua/dto/child/ChildResponse.java
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.softserve.teachua.model; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.With; | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@With | ||
@Builder | ||
@Entity | ||
@Table(name = "gender") | ||
public class Gender { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
@Column | ||
private String value; | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
spring.output.ansi.enabled=ALWAYS | ||
|
||
# Port | ||
server.port=80 | ||
server.error.include-message=always | ||
server.servlet.context-path=${PUBLIC_URL} | ||
server.tomcat.relaxed-query-chars=|,{,},[,] | ||
server.forward-headers-strategy=framework | ||
|
||
spring.web.resources.static-locations=classpath:${STATIC_FOLDER} | ||
application.upload.path=${UPLOAD_PATH} | ||
baseURL=${BASE_URL} | ||
|
||
# Thymeleaf | ||
spring.thymeleaf.cache=false | ||
|
||
# JPA, Hibernate | ||
spring.jpa.hibernate.ddl-auto=update | ||
#spring.jpa.show-sql=true | ||
#spring.jpa.properties.hibernate.format_sql=true | ||
#spring.sql.init.mode=always | ||
|
||
# Postgres | ||
spring.datasource.driver-class-name=org.postgresql.Driver | ||
spring.datasource.url=${DEV2_DATASOURCE_URL} | ||
spring.datasource.username=${DEV2_DATASOURCE_USER} | ||
spring.datasource.password=${DEV2_DATASOURCE_PASSWORD} | ||
|
||
#spring.datasource.driver-class-name=org.postgresql.Driver | ||
#spring.datasource.driverClassName=org.h2.Driver | ||
#spring.jpa.database-platform=org.hibernate.dialect.H2Dialect | ||
#spring.datasource.url=jdbc:h2:file:./test.db;DB_CLOSE_DELAY=-1 | ||
#spring.datasource.username=sa | ||
#spring.datasource.password=sa | ||
|
||
# Flyway | ||
# true to initialize the schema history table. | ||
spring.flyway.baseline-on-migrate=true | ||
#spring.flyway.enabled=true | ||
spring.flyway.enabled=false | ||
|
||
# Logging | ||
logs.path=${URL_LOGS} | ||
|
||
# JWT | ||
application.jwt.accessSecretKey=${JWT_ACCESS_SECRET_KEY} | ||
application.jwt.refreshSecretKey=${JWT_REFRESH_SECRET_KEY} | ||
application.jwt.accessExpirationTimeInMinutes=30 | ||
application.jwt.refreshExpirationTimeInDays=3 | ||
|
||
# OAuth | ||
authorizedRedirectUris= ${BASE_URL}/oauth2/redirect,myandroidapp://oauth2/redirect,myiosapp://oauth2/redirect | ||
|
||
# Spring @mail | ||
spring.mail.host=smtp.gmail.com | ||
spring.mail.port=587 | ||
spring.mail.username=${USER_EMAIL} | ||
spring.mail.password=${SEND_PASSWORD} | ||
spring.mail.properties.mail.smtp.auth=true | ||
spring.mail.properties.mail.transport.protocol=smtp | ||
spring.mail.properties.mail.smtp.starttls.enable=true | ||
|
||
# Photo uploading | ||
spring.servlet.multipart.max-file-size=-1 | ||
spring.servlet.multipart.max-request-size=-1 | ||
|
||
# OpenAPI SwaggerUI + Tomcat skipping jar Manifest scan | ||
springdoc.swagger-ui.operationsSorter=method | ||
springdoc.swagger-ui.tagsSorter=alpha | ||
server.tomcat.additional-tld-skip-patterns=*.jar | ||
springdoc.swagger-ui.disable-swagger-default-url=true | ||
|
||
# Actuator exposure settings | ||
management.endpoints.web.exposure.exclude=* | ||
|
||
# Search statistics settings | ||
statistics.toCache=true | ||
statistics.max-time=2023-10-03 00:00:00 | ||
statistics.max-number=1000 | ||
|
||
|
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