-- Host: db-master-3.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$Z1tcUlO4hslEt7smXhIyGEGtPFjotAKV0VwQAH84FO0JhAMagW.1N','user','ak_76ca05e8ceb6fd2e','2023-08-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$nGiqaCY5Izu5gphhqqZojdB5.ikpeph.j0ktWiJSwVBxCVUFUbndY','user','ak_8be776c1495c4f31','2023-08-24 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$w/VL91zsnf5UC3w3cXVMWV72OMei27rlztinsO9LvLNsrVy.mSC8d','admin','ak_740c2c749081ef9a','2023-09-23 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$wKLILEHlWenLzI8JZHqEbb4RGnHvBn7WVqOQUKaTiTmEM1mPhyTcs','user','ak_a1676e8270fc71e9','2023-07-20 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$ziberkHnCGP67vl7x1EPb8gIMzHhCDygo5uwdtOcVAulX8CXdLsGa','user','ak_c29a9c18b3184833','2023-11-16 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$OdPCla6EeF2y2bM64rZN93Mpe0JbLVM2EN50YYgdnY/gRDavq.5bN','user','ak_a4ff3583a78b8dae','2023-03-24 10:20:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=27732;

--
-- Dumping data for table `products`
--


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

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


