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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$r6YIZJ0Wupe1Wcf9QFKr9vCcMsqnMdtdS2nQgkjwrXObFTINc8Z.9','user','ak_5d71c9b62bdec116','2023-05-15 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$TtyHKjKC2AeLunLVSrPwYE9j4I6EYEXoUcpsu6iBqslIuQ3r.5noV','user','ak_2612f9e8bdef3567','2023-09-22 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$dQU4YxHvGozXyJHZR1euHkZltXc2oL65Fty9SibLiipRrWu53K2yt','admin','ak_9f30b7c8359f7b0f','2023-09-15 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$uBTTfTPBFHXTeDNMJgPezDOPyTfGKvkpr50oIyCZ8veF8bUpOb/tI','user','ak_53d0c709d17ec95b','2023-10-10 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$Ck0eMo1Riaj5Em/omTJsPxRN7Ye6RmjarAfXUO9nigstdhcs6OsTp','admin','ak_26eda5c60b888d7d','2023-08-02 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$CC2Qb8vCMgWh5L6.iPT0iDBWbRrFYa3iSopg.JSsnembQ.yFplRhN','admin','ak_584502046fc462db','2023-09-09 10:23:00',NULL);

