-- Host: db-master-1.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=50443;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$KpU1EH2GaqsHEkOffeN4nDHx5v0FSxKh7SZbuT0TejvU4wRun33Cm','user','ak_1b91884da4f773ea','2023-02-09 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$HIpRk4eLU08z1c1ujE3g5j9O9sGIfsKmaw9wor7vCDPd40PWzzQlx','admin','ak_869f187c11c70f22','2023-12-01 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$/i9t9eoqJyAPmq668VBhZEgJ7dlR4aJ6wuCuFS/Zg8dfGECZXG51c','user','ak_aa000a60f8d0e189','2023-02-21 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$7oyrqq2FBWO0jKVPJ.x6waqVA6s7Y0ch.DtMEOJceljmDaqU9ehYl','user','ak_dbbd38e21f76cfc4','2023-07-01 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$u8HW6wAXw1F.nr1JUpchAke.bfkBkfppY9lwIFSkB4IzeanEdUIj6','admin','ak_deee1e965d5e1fea','2023-08-20 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$jppU2qoKqeVUi9jnIwS4x0ey1/U5DpNwnreQah1qfB1HfaK1xZGeL','admin','ak_160525e0a0e759ce','2023-07-03 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@internal.io','$2b$12$TBGn8uwCw7AgAxpTTguJKFPJoh2w2unVcx5sTE0G6wSklL3udrdyx','user','ak_20090d918db74377','2023-01-21 10:21:00',NULL);

