-- Host: db-master-9.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=45643;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$Yy21juRPd.zAxIEOok2itRqz3Sa1RoLD4wvisHc2BMy3GBQP6I0AP','user','ak_382a41d15047b652','2023-11-23 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$5kB6ZGXDjebbX9KjejblSBDG9HHyEfYIL/apY/RARZHKu2.l6j//t','user','ak_9a8a7a9b4200d8d2','2023-11-01 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$hbTQZVwrytU9yMGK/2HxzXbu3gemFge/m39meiZHcWm3r9g7TO/es','user','ak_193d17286ef169e2','2023-03-11 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$P/cQsPfTSMEORDqS1aHRwJrk.KR17JtNDj7ZcwuWSd21/BAGPvm04','user','ak_64cbcf896252b6b2','2023-09-12 10:23: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=3455;

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


