-- Host: db-master-3.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$yZxEPBn.FgJenK7a0ApHMLDtm2MMEQMXPgV0eTLp5ixbvpS.PtNum','user','ak_9629c9bef1424d05','2023-02-07 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$Sxun0ckdPkfFN3a2TrBZBSsQe54SvdmCV1filirlw7hyKjcBn3una','user','ak_b2e0726e7cca96aa','2023-06-08 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$oOmOR3B1nTHDKMFjn.j2oCsw0.Mk4/RhMtonH08.FJeamp8.QLURu','user','ak_7126433c653b063b','2023-11-13 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$6UHTBOAgttVl1LI4mTZYUOnqbu0MzQqgrGlelJyecQKKGipW7H4ly','user','ak_12b1d18e37bd06e1','2023-11-18 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=20020;

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


