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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$fbY/APuaNJQSi005WrWNvvh1t1r9CDAm.q.Ns0//VSvRklHoOesdp','user','ak_cb855427598293c9','2023-02-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$1k3bQ2l8jn6oBATLLJJXXgOu94Ay44WcQYs5pqzzlYNqdYauRDSEc','user','ak_2a8dbb082e0700c0','2023-06-09 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$Qt/yMoshN1SKHbG1sxxaEGd86/gm6xr8/pmK2hub1mDZKtaV9fqfm','user','ak_005b3cdfcd59f239','2023-06-27 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$i8DMWVvd7majZqCihVU/dso8iTCGF/MoaIyqRC.EoaQ6riZ73s4AX','user','ak_68457e3575c8e198','2023-11-10 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$6RmPmIeSx.GGauhItTIaFmwy35rcpuoOhPRyamD53q4P2zuaVsD04','admin','ak_582f37c0e3eab18a','2023-09-15 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$/.n.HGg.92JR9Vaq1ZR4eO6pQmwzBMqfEqAPgIHbjLwFP1tnKK5ET','user','ak_c5dc4c60ca0a8019','2023-06-11 10:14: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=44188;

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


