1- -- adding tables for multi users access
2-
3- CREATE TABLE `webusers ` (
4- ` username` varchar (50 ) COLLATE utf8mb3_unicode_ci NOT NULL ,
5- ` password` varchar (255 ) COLLATE utf8mb3_unicode_ci NOT NULL ,
6- ` enabled` tinyint (1 ) NOT NULL ,
7- PRIMARY KEY (` username` )
8- ) ENGINE= InnoDB DEFAULT CHARSET= utf8mb3 COLLATE= utf8mb3_unicode_ci;
9-
10- CREATE TABLE `webauthorities ` (
11- ` username` varchar (50 ) COLLATE utf8mb3_unicode_ci NOT NULL ,
12- ` authority` varchar (50 ) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT ' ROLE_USER' ,
13- UNIQUE KEY ` authorities_idx_1` (` username` ,` authority` ),
14- CONSTRAINT ` authorities_ibfk_1` FOREIGN KEY (` username` ) REFERENCES ` webusers` (` username` )
15- ) ENGINE= InnoDB DEFAULT CHARSET= utf8mb3 COLLATE= utf8mb3_unicode_ci;
16-
17- CREATE UNIQUE INDEX ix_auth_username
18- on webauthorities (username,authority);
19-
20-
21- -- Insert a user = admin with the password = pass. Change password after installing!
22- INSERT INTO webusers (username, password, enabled)
23- values (' admin' ,
24- ' $2a$10$.Rxx4JnuX8OGJTIOCXn76euuB3dIGHHrkX9tswYt9ECKjAGyms30W' ,
25- 1 );
26-
27- INSERT INTO webauthorities (username, authority)
28- values (' admin' , ' ROLE_ADMIN' );
29-
30-
1+ ALTER TABLE ` transaction_stop_failed`
2+ ADD COLUMN ` charge_box_id` varchar (255 ) default null AFTER ` transaction_pk` ;
0 commit comments