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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$wCGxOA7EXzj3j6VgSgzUr5stw8kudB488eT.iAWJ5wgrJqLooZogg','user','ak_d1839b5caa757d2e','2023-04-27 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$QRel7TvS/pZApdDnEprrNOONhiZGHWrrUq84Huv4DUR9usLC43a4i','user','ak_f4784038128e85b4','2023-12-18 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$y7e5xTST1nL1S2yFijyDiIjiLhGIziS.C8mjD3fh.C79HZPOiSY7w','user','ak_5bb637feb1cd4344','2023-08-18 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$0afbhPInaLuPvR2ed3kBC3kaA1VH3MB6r8oiX566uAK7kNamjr8ag','user','ak_0c9fdd87b6533adc','2023-06-14 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$VG6Xrd1C04zQpxibjFaBIYdEA4CmfgqGws4PhQhvFzUeh.rrg9k1r','user','ak_d12a42411e89ed0b','2023-05-16 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$IGErPq0tAs1V/OSfilHW4JmwxyMoo2w.KJ67Q/Erwi8y2uKnYczuo','user','ak_8a80c5911ef97709','2023-06-20 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@corp.net','$2b$12$z0BSAgZ42B4CxSOYJRoZJlaqGn2F0UZMSMiaRns02RrwoDUI5Ct6V','user','ak_b0335428c8f10726','2023-10-01 10:11:00',NULL);

