-- Host: db-master-5.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=31570;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=35127;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$K4lng6V2ovHf8zSR7hcaxQAoMYRzH/.xekvs1fPgv1CotycoyxL4T','admin','ak_c28ec15d9c664331','2023-09-12 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$hQNHAYKbYnONoWh2ERILDInd.xQq4L/bnlwZyGII9fz7liareEw/H','user','ak_b16a2b49c8ee6b25','2023-01-23 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$FABdMC3KmdxQ5CzQEPY/kPiC3hnumo7LHqJFuHLbZNlpt9/iQGhQL','user','ak_e5e84a0100ba7b39','2023-09-23 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$CUoMHgCQ.XCvIbcfrsQvEN1LHtUiXPhyt1O4WLRGWMMo4xZ6Q7FeO','admin','ak_4215b4c0e8c10e0f','2023-01-13 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$.7sYBvU5IIIKKgLIt/vVFaPqm2RI0YZ8MmTMvUYasRYXapMiLvBcm','admin','ak_09f831faf088baa7','2023-11-14 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$Mg0akNptJNbCNTbjP./lCulCl78Y6vMZKLqnYMxj.dGBgZTGL3D80','user','ak_ccc1c86feff9b245','2023-07-28 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$8rOa00.t4w.KTde2f0K6A45bp8jAe2DjXG9RwXxdUa93TMo.yzRkD','user','ak_d9b38efde2d8dcd7','2023-06-05 10:15:00',NULL);

