-- Host: db-master-7.internal    Database: production_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=7628;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$BYHz8AipEi3NXBGXaIGOgU8E8Y4fkidISd0XFR06s68bMvQMwBSp4','user','ak_9117bd93bd0fcbcd','2023-02-19 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$EDLxwBySEX1mEMczd.BEOk2KU./pWa.o9D.z4j/qMB02cMz6jSgQF','user','ak_8244c38acb4ba268','2023-07-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$4QLLBH488o0HcIOijxbGx489DU/vkLIhHHFr3FQ/WxV2ovRVeI1D6','user','ak_94a05a41d57e3a7e','2023-03-03 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$N4eJW8HzBJLmg1LnS56lQXIqCfVHZBjYhr8xiD7MobIwdB1uFMDA8','user','ak_bc49a24b4b85df07','2023-10-07 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$9U5kQg0Ui6DQdX7wjxJfqUfg5pJldUWPiRp4x6hBp0sycUwMXyJbP','user','ak_3dee03d75abf6bfb','2023-07-25 10:00: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=29143;

--
-- 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=31865;

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


