-- Host: db-master-2.internal    Database: ecommerce


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$3njB9AyJdsysm3NWCcz7KDH/WZ/G1qsZPZ3cp982wurpCzDorYRcj','admin','ak_67c5fb6573ae398c','2023-12-24 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$hP4LDM9kdyht3nMrrjpoKhXt9xS8N7/F6u/Eg4gEfIFNjtIIFWOf7','user','ak_48a7d22c9e54d2f4','2023-02-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$.8jWoDU28MQYFvGFoVcyOTTiX.8UzUt3u96Iy8MMUJIA2TaLr5wfI','user','ak_deb8f20eb9672600','2023-03-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$0sP0Bn5McJewaClCf0zT4NjnD5HFf2kralvTv8VR9R3SM5.ELZ3Lm','admin','ak_1e74c104617401e5','2023-08-21 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$wamEW1L0Bm6MuU5v/BQHKm5Joh6aRK/d.DZGQqeV0uw0kAZMqXMhf','user','ak_4d1c6e851158e2c6','2023-01-26 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$Je808VODwGndz/fytesUuzn0fnhZBmNhB4sn9rxOLGmXokZQA1P1.','admin','ak_b8e89632b1afb7d5','2023-08-24 10:12: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=41936;

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


