Skip to content

Commit

Permalink
feat: add created_at and updated_at timestamps to User entity
Browse files Browse the repository at this point in the history
- Added `created_at` and `updated_at` fields to the `User` entity.
- Used `@CreationTimestamp` and `@UpdateTimestamp` annotations for automatic timestamp management.
- Created migration script to add the new columns to the `users` table in the database.
  • Loading branch information
LeonardoMeireles55 committed Jan 20, 2025
1 parent 8fcee3f commit 27d1297
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# spring.main.banner-mode=off
spring.main.banner-mode=off
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.datasource.url=${SPRING_DATASOURCE_URL}
spring.datasource.username=${DB_USER}
spring.datasource.password=${DB_ROOT_PASSWORD}
spring.jpa.show-sql=false
spring.jpa.open-in-view=false
spring.jpa.properties.hibernate.format_sql=false
spring.jpa.hibernate.ddl-auto=none

server.error.include-stacktrace=never
api.security.token.secret=${API_SECURITY_TOKEN_SECRET}
api.security.issuer=${API_SECURITY_ISSUER}
spring.jpa.open-in-view=false

0 comments on commit 27d1297

Please sign in to comment.