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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$f1jmmyPfqoeFV1RHFW/66GXUYcx51CRWxX1KCko6pcE1ukmw3Saw/','user','ak_6ca82c939a4b8a56','2023-04-05 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$38IAHDxXskStzTApCDm.1OIOnPxL1XxVmpeIfmItIlNFQ8xNaWJPE','admin','ak_f3da496e925c47e9','2023-09-19 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$JpD1joU60MOLafSlbnpjUguXWQ/C8e6owlMYegrOisQXo4xxP3ZkN','admin','ak_9093df5d2e55cbdb','2023-01-14 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$iD4YnyPFJZzBRpglGhmgzbuPZIo67OJ4QUz12osT05EOwL9aRFbeX','user','ak_004abf7ebcad7c13','2023-09-10 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$MT4R0pOzi7SN8ITDA3BlPl8h6bScd6Jee33pIfGQd6N/AyRhA5YcU','admin','ak_d4bc633fdb787694','2023-07-10 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$D.m9EZ5zXszi5tpPE9rDYTt3xK10EUK3SHsacDvHEzi9XONdT0hJK','admin','ak_32c3dccfd04ecff1','2023-08-05 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$BRt8qISVR0Y7754O7OKJB.BERajxsnvQkLblLfB3AE9Gn3gB0tcRq','admin','ak_f0dfa9a6c6b6cb68','2023-01-27 10:21: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=37355;

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

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


