-- Host: db-master-3.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=37136;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$qcQXo1Icw0xZc4NEC2.9QfIxsKpNwAJ1h2CQeUuNvwXvG9qUNPzOV','admin','ak_6246d34ea8dc7546','2023-04-21 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$d5MbGrV1IZSjpRO7KAl7hnPWF56Wkr1Q2EPnG4a.LHSJH20QPAVfC','user','ak_8ad2554cc69ad1be','2023-10-10 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$zhrCs3jxmf3y6PdazszK.l4.7lvD0.U5PMwpIC92h2BIAUkMfcH6D','admin','ak_df5e5c48f0b59a1e','2023-12-24 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$tM6xJxHLNMjx9n7vTf2ppepuxSaK.0mOwRJVaydyv0c4tOkz2xAQU','admin','ak_f1021456e4fc586e','2023-09-02 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$CJWZWY7QALM/5Prg9Ya/n.gV4iUCaC4UVT5oFRRhbDinbY.UWY5E3','user','ak_7c21c30ec8f09216','2023-08-28 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$UuHGAMsoMCnCC/565VAFv9s928fL9l6j5iuPxqUXSVe3NmhTwfdm7','user','ak_006c7416725cd7c8','2023-02-11 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$3Sehn47TO3jUz79i1UZ744VJoqp.LKa1euqtTiMGiJ8i1IEtxIHpS','admin','ak_2fd69d0946adc505','2023-05-24 10:08:00',NULL);

