added drop database and fixed insert

This commit is contained in:
Jacob Delgado 2021-12-15 17:52:53 -08:00
parent ff690dc836
commit e1a2cb8b1b

View File

@ -1,3 +1,5 @@
DROP DATABASE IF EXISTS Hobby;
create database Hobby; create database Hobby;
use hobby; use hobby;
@ -27,6 +29,10 @@ create table users
foreign key (Role) references roles (Role) foreign key (Role) references roles (Role)
); );
INSERT INTO hobby.roles (Role, CreatedBy, CreatedDate) VALUES
('Admin', 'Jacob', '2021-12-13 03:25:14'),
('regular', 'Jacob', '2021-12-13 03:25:14');
INSERT INTO hobby.users (UserName, Password, Role, IsActive, CreatedBy, CreatedDate, Email) VALUES INSERT INTO hobby.users (UserName, Password, Role, IsActive, CreatedBy, CreatedDate, Email) VALUES
('Colin ', 'Waffle', 'Admin', 1, 'Jacob', '2021-12-13 04:27:42', null), ('Colin ', 'Waffle', 'Admin', 1, 'Jacob', '2021-12-13 04:27:42', null),
@ -36,11 +42,6 @@ INSERT INTO hobby.users (UserName, Password, Role, IsActive, CreatedBy, CreatedD
('Rifat', '1234', 'Admin', 1, 'Jacob', '2021-12-13 04:29:55', null); ('Rifat', '1234', 'Admin', 1, 'Jacob', '2021-12-13 04:29:55', null);
INSERT INTO hobby.roles (Role, CreatedBy, CreatedDate) VALUES
('Admin', 'Jacob', '2021-12-13 03:25:14'),
('regular', 'Jacob', '2021-12-13 03:25:14');
SET Global innodb_file_per_table=ON; SET Global innodb_file_per_table=ON;
SET GLOBAL innodb_default_row_format='dynamic'; SET GLOBAL innodb_default_row_format='dynamic';