-- Host: db-master-7.internal    Database: webapp_db


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=24503;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$sg.7gYbve7NGeDMh7qV34AUhxf3WvL30WsdY1yc3aWlW5ecDC6YPW','user','ak_c5413e56db833851','2023-04-27 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$//VNeHqRl.cNOnERJ90cicXsZRvN2QeMddiRSjcOc5xoh0EZKxGTc','user','ak_d289811b92c340e0','2023-05-15 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$FCg2onGG8AaRvY9eRPMUiaYp.K.LpvklezP9TPkqA2wWkt4fVSot3','user','ak_fcfe927a391533e2','2023-01-03 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$ldrdwEgQExwpdrY/vs/Fp9dWZkCrTKLs8GWN0TqVJiO8cyKoW.geV','user','ak_22f4be9dc22d98ce','2023-10-28 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$Z1Z3bm/EM0Epo.s7MF7JlPBSjQ4c41WUElhfJc9T4roL1EgYT7ikb','user','ak_3734818eb1bbfeb0','2023-06-20 10:19:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=33828;

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=33824;

--
-- Dumping data for table `products`
--


