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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$iL8N3VsZo69Z/5l28xezhIYGjfoMxF7RBgFM9uTGQoN7.fswDIn74','user','ak_3c4e5879a7cc574a','2023-10-05 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$F/HELvyK1cVTTDKgfHHWtRxpqmW86kGvqCpkK.vZd74e0Rsc2i.Sv','user','ak_fcf10b9f0db8b540','2023-02-06 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$qK61av9j944LnvqQUZXNZa8wx5lboa9SsC0xpsXuXboTmHszeEeGy','user','ak_0c49fc859a0bca95','2023-12-04 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$udUpIks8easDJuxQObjQxGygzhfnzo9ms49WE3Dv4NOvegnsl1Idj','user','ak_58fda04de0a12694','2023-11-20 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$Ao0s3cMUBeWOupzALlmQFANdvhZpjFkPNExB29oC6Z.Mc7oSwFHps','user','ak_e64695a40db3fb6b','2023-05-14 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$h9O43QAGYfIHXVES0V4RMl2Px3a12SklLo8GFW1mZRtlaXTOM.BBz','user','ak_5cd9af32c00949fe','2023-09-14 10:08:00',NULL);

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

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


