-- Host: db-master-8.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$3LIiTsXn6nyjZ2/GpXLGRhAH9HsLVz9c6djgIvyweYZ06sC9H2rlV','admin','ak_fd452074fcf0ef16','2023-05-05 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$oEeXIe1qPGeZXTv7VYc5abs/OOfxk7s0ZmWyf3qs7AMxY/SwV0BHU','admin','ak_5b7b967a136e9adb','2023-05-18 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$CPppwZQpuI9nCx3u52RvorpH3zsdFBYZ2a4N9q/sF2Zt/S801ikda','user','ak_ab1eee23dd28a476','2023-12-12 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$vp0NR6zK5j/x1zKkU0dXLs.T9JTD7ja4Coe8fDxqUz69YMbkqrNcn','user','ak_3fff43742cfd9597','2023-05-05 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$f7ugD3Q18wIHy5WntqnxQr5YWP4tX.7cAR1qgtLCm4bWUkXy/T9A0','user','ak_99f231c67ac3c4a7','2023-05-25 10:00: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=11255;

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

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


