Comments (3)
yes. please
from spring-security-registration.
-- Create syntax for TABLE 'hibernate_sequence'
CREATE TABLE hibernate_sequence
(
next_val
bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'PasswordResetToken'
CREATE TABLE PasswordResetToken
(
id
bigint(20) NOT NULL,
expiryDate
datetime(6) DEFAULT NULL,
token
varchar(255) DEFAULT NULL,
user_id
bigint(20) NOT NULL,
PRIMARY KEY (id
),
KEY FKgdew0adk8xruaoq2rgdsy34w2
(user_id
),
CONSTRAINT FKgdew0adk8xruaoq2rgdsy34w2
FOREIGN KEY (user_id
) REFERENCES user_account
(id
)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'Privilege'
CREATE TABLE Privilege
(
id
bigint(20) NOT NULL,
name
varchar(255) DEFAULT NULL,
PRIMARY KEY (id
)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'Role'
CREATE TABLE Role
(
id
bigint(20) NOT NULL,
name
varchar(255) DEFAULT NULL,
PRIMARY KEY (id
)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'roles_privileges'
CREATE TABLE roles_privileges
(
role_id
bigint(20) NOT NULL,
privilege_id
bigint(20) NOT NULL,
KEY FKp0x1d9k5aksyqd1akwwfkh0ki
(privilege_id
),
KEY FK2rfl694fu6ls2f2mqcxesqc6p
(role_id
),
CONSTRAINT FK2rfl694fu6ls2f2mqcxesqc6p
FOREIGN KEY (role_id
) REFERENCES Role
(id
),
CONSTRAINT FKp0x1d9k5aksyqd1akwwfkh0ki
FOREIGN KEY (privilege_id
) REFERENCES Privilege
(id
)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'user_account'
CREATE TABLE user_account
(
id
bigint(20) NOT NULL,
email
varchar(255) DEFAULT NULL,
enabled
bit(1) NOT NULL,
firstName
varchar(255) DEFAULT NULL,
isUsing2FA
bit(1) NOT NULL,
lastName
varchar(255) DEFAULT NULL,
password
varchar(60) DEFAULT NULL,
secret
varchar(255) DEFAULT NULL,
PRIMARY KEY (id
)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'users_roles'
CREATE TABLE users_roles
(
user_id
bigint(20) NOT NULL,
role_id
bigint(20) NOT NULL,
KEY FKa9r8g5hiyy57ts5u4tkf0lbab
(role_id
),
KEY FKci4mdvg1fmo9eqmwno1y9o0fa
(user_id
),
CONSTRAINT FKa9r8g5hiyy57ts5u4tkf0lbab
FOREIGN KEY (role_id
) REFERENCES Role
(id
),
CONSTRAINT FKci4mdvg1fmo9eqmwno1y9o0fa
FOREIGN KEY (user_id
) REFERENCES user_account
(id
)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Create syntax for TABLE 'VerificationToken'
CREATE TABLE VerificationToken
(
id
bigint(20) NOT NULL,
expiryDate
datetime(6) DEFAULT NULL,
token
varchar(255) DEFAULT NULL,
user_id
bigint(20) NOT NULL,
PRIMARY KEY (id
),
KEY FK_VERIFY_USER
(user_id
),
CONSTRAINT FK_VERIFY_USER
FOREIGN KEY (user_id
) REFERENCES user_account
(id
)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
from spring-security-registration.
Hey @unsekhable The database for the project is generated automatically based on the JPA entities and updated when there are any changes to the models. This is controlled by the property:
hibernate.hbm2ddl.auto=update
in persistence.properties.
You can enable logging for the SQL statements generated when creating the database by adding the property:
#logging.level.org.hibernate.SQL=DEBUG
in application.properties as described in this tutorial: https://www.baeldung.com/sql-logging-spring-boot
Cheers.
from spring-security-registration.
Related Issues (20)
- error in registration process HOT 1
- Broken code in UserService.java HOT 3
- About security : HTTP 2 instead of HTTP 1.1 HOT 1
- MFA keeps failing: totp validation always returns false HOT 2
- When update all POM dependecies? HOT 2
- Login form submits to unexisting action HOT 3
- Runtime error due to rest-assured dependency HOT 3
- Unable to do API test with Rest Assured API framework- Getting below error - Not sure what is the issue HOT 2
- Failing tests HOT 1
- wont run after packaging war
- Make LoggedUser serializable or don't store it in the session. HOT 2
- Unable to resolve JDBC type code for column `roles.users` HOT 2
- MyLogoutSuccessHandler needs (to extend) SimpleUrlLogoutSuccessHandler HOT 1
- A successful login shouldn't reset the attempt counter HOT 2
- Full courses refund
- Spring Boot 3.0 Migration HOT 1
- Application does not run when deployed to web container (Liberty as an example) HOT 1
- unable to start this application with mysql HOT 2
- Linux io problem HOT 4
- [ISSUE] Using REDIRECT when should be using FORWARD for redirection when VALIDATING HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-security-registration.