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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$69Xqor72WGfF9WuNTQhhGb4FoEG6tv7QK2DgzXfBBJ1EGnuajPHIm','user','ak_d80ec6d00ec0ee8b','2023-05-19 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$45dx67as1whrdWa0sGrcHloA0aS8L4J7dI8TwrBND4Mc2JvGtk8j7','admin','ak_fb6a47efbc5f4d96','2023-10-04 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$owxcPPC2gDju02YwkeTgQ0QQSnort1SuqlLGt2B.7/5kl6kMZrnRo','user','ak_686c7b08be696fa2','2023-12-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$3BCn96MyndbOGAWLze1Yu/T2UWaM2NxNU2Nnv4AqrlLpA9UUl9O8u','admin','ak_cef825451edd9d88','2023-11-20 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$6nbdbl0QNNlPm7.iLID/kfxYRbIAtgS5ty3y71rpz7c8vGzmeErvQ','user','ak_30cf5f3ecb720f8a','2023-01-13 10:21:00',NULL);

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

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


