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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$76nHVYA/qFYapbBVUFtq1pypgkm3y4IotI4PFnUMNuCJLjcBmxU/G','user','ak_ed2474a57e779f89','2023-08-22 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$tKK9Th5yiyXBD.xkfWcs9xlGK9DaUyX3nvE.SsD07cPOON6tX7Ex6','admin','ak_4e8774d30af9d8ae','2023-04-24 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$JXjks5UDXRB7YvRnS0HDB/fq4Z3Y.3BpwnTruHqsJHUIufYZYr3rx','user','ak_ad323f40c2e4d9d0','2023-01-26 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$oZOOaXvYH/j0GWIKsca5fjWfHPzCedjRwnYg29k6STVdbKHG.Z4CS','user','ak_a802d96e014a871a','2023-12-21 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$53U0p5nnjpTyt8Z3qQXoFDu//XbpgnBO.mAtAbDmiDS3zmQmlr7C4','user','ak_ca1f4b320c178d16','2023-08-19 10:05:00',NULL);

