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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$HOzIatQtot74dmSdD1nCsYAMOtYR1/raiRPabdCIDciB6LbF4l5aN','admin','ak_b3ba212923db5ac7','2023-02-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$huGxux90NTBsK62cDdaKnP0B62Dwy86.fgjkhS40SEc.ZzBKKXycM','admin','ak_c197f2c750ef08db','2023-01-28 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$9T/z2SbCBCwNHYlf/9W9ENbdhTM0pMswaKvdIpXIMz.vmjrdGiUij','admin','ak_395f11cc19734c99','2023-02-24 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$u6IfSs93HHUDhPKaU2.6T8XSYgPVyxjQ3d8FccgFtlniSjQrCK6hA','user','ak_069b568d88ca108e','2023-01-26 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$OC6ccOKrUHTN/5M2TFhm2wIHFecfAz3ozg1brp43pQuQp8o4MEwoG','user','ak_874e3aaeda5fa4b5','2023-04-21 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$hkNWEa0n9LHd5RhePife6FqptvTJyU86SY7Et.JGTT1zsqCKyzE7t','user','ak_fa79d05e01c9ca14','2023-03-06 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$Rj/Sswh/eBYMbuwJsQY7aHxAxYYUXJX5MiIv1UBQhM7kTNlLpEu6b','user','ak_a63f854493175eac','2023-09-11 10:02: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=44682;

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=4387;

--
-- Dumping data for table `payments`
--


