Type |
New Feature
|
Priority |
Normal
|
Assignee | |
Version |
none
|
Sprints |
n/a
|
Customer |
n/a
|
Issue Votes (0)
Type |
New Feature
|
Priority |
Normal
|
Assignee | |
Version |
none
|
Sprints |
n/a
|
Customer |
n/a
|
🐘 Integrate PostgreSQL and Bootstrap Initial Roles/Admin User
Goal:
Integrate PostgreSQL as the primary database for Sztab and initialize system roles and a default admin user at application startup.
Estimated Time: 4–5 hours
🧩 Task Breakdown
1. PostgreSQL Integration
pom.xml
application.yml
with:spring.datasource.url
spring.datasource.username/password
spring.jpa.hibernate.ddl-auto
uuid
primary keys if needed2. Schema Generation & Validation
EnumType.STRING
) and timestamps3. Bootstrap Roles and Default Admin
data.sql
or use@PostConstruct
orApplicationRunner
ADMIN
,DEVELOPER
, etc.)ADMIN
rolePasswordEncoder
4. Secure Default Admin Password
application.yml
or env variableadmin123
) only in dev5. Test Against Local PostgreSQL
📦 Output Artifacts
Notes:
If we need Docker Compose for dev, I will include PostgreSQL container setup in
docker-compose.yml
.