Commit ec328596 authored by Ruksana Semeir's avatar Ruksana Semeir
Browse files

Added the userRole field in comment Data

1 merge request!1Development
Showing with 19 additions and 16 deletions
+19 -16
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
<finalName>kubernetes</finalName> <finalName>comment-hub</finalName>
</build> </build>
</project> </project>
server.port=8099 server.port=8099
management.endpoints.web.exposure.include=health
# PostgreSQL configuration # PostgreSQL configuration
spring.datasource.url=jdbc:postgresql://localhost:5432/commentdb spring.datasource.url=jdbc:postgresql://localhost:5433/frac_tool
spring.datasource.username=postgres spring.datasource.username=postgres
spring.datasource.password=password spring.datasource.password=yoursupersecret
spring.datasource.driver-class-name=org.postgresql.Driver
## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.format_sql=true
# Hibernate ddl auto (create, create-drop, validate, update) spring.jpa.show-sql=false
spring.jpa.hibernate.ddl-auto = update spring.jpa.hibernate.ddl-auto=update
#------------------secretes------------# #------------------secretes------------#
jwt.secret.key=comment-hub jwt.secret.key=comment-hub
...@@ -23,7 +17,7 @@ spring.redis.host=127.0.0.1 ...@@ -23,7 +17,7 @@ spring.redis.host=127.0.0.1
spring.redis.port=6379 spring.redis.port=6379
#spring.redis.password=KZ9u%Z&mki4&p35 #spring.redis.password=KZ9u%Z&mki4&p35
# 14 days in second 14 * 24 * 60 * 60 # 14 days in second 14 * 24 * 60 * 60
redis.ttl=1209600 redis.ttl=86400
#----------------------------Configure Logback pattern ----------------------- #----------------------------Configure Logback pattern -----------------------
logging.pattern.console=%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n logging.pattern.console=%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
......
...@@ -48,9 +48,12 @@ ...@@ -48,9 +48,12 @@
}, },
"userName": { "userName": {
"type": "string" "type": "string"
},
"userRole": {
"type": "string"
} }
}, },
"required": ["userId", "userPic"], "required": ["userId", "userPic", "userRole"],
"additionalProperties": false "additionalProperties": false
} }
}, },
......
...@@ -38,9 +38,12 @@ ...@@ -38,9 +38,12 @@
}, },
"userName": { "userName": {
"type": "string" "type": "string"
},
"userRole": {
"type": "string"
} }
}, },
"required": ["userId", "userPic"], "required": ["userId", "userPic", "userRole"],
"additionalProperties": false "additionalProperties": false
} }
}, },
......
...@@ -35,9 +35,12 @@ ...@@ -35,9 +35,12 @@
}, },
"userName": { "userName": {
"type": "string" "type": "string"
},
"userRole": {
"type": "string"
} }
}, },
"required": ["userId", "userPic"], "required": ["userId", "userPic", "userRole"],
"additionalProperties": false "additionalProperties": false
}, },
"commentResolved": { "commentResolved": {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment