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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$/bk7L99Kcb5cf8AhjKe2oTCY1sFVdPosYHp40P8ZOiaRFD4BB8ddf','user','ak_0c36fb30c47074c7','2023-11-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$wGUGjq.NzcMhlnHNhzpdCm0NddgIr.gkXIO.gZ3528V1BIbL.TB1M','user','ak_a36de1b61698bdc4','2023-04-08 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$0SpS45vjbhySL6S80LfKn1wxlhWPee3BRY2pcuwkRruF0jiFRQR5K','user','ak_584060742eee3f2d','2023-04-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$wprzJQqrWiK8LJwh2E0eQKGPszt2wVgjqgfMaMsIypbIx321vUu4F','user','ak_775b4de6e6085b12','2023-06-05 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$9NdYkI7PnUJ6wq9ts6XTDjKydb5oHd9P44hrJ328umK3OEdlv6X7v','user','ak_83012df045f683dd','2023-04-15 10:20:00',NULL);

