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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$uUhd1SydXfOlN8fmqLrZ0zm4XD1c0AW2jLTEo9HTl1/3mGhtTT9/4','user','ak_dc0b7a8123facbab','2023-11-24 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$2K2bpK76pPrr2X0nzZ.bvsi3f4RZLrtTa.y1wsCzIvr.i8S8fURFI','admin','ak_70725634bc713a74','2023-06-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$a535koqsEncGWx/rj3fI7rFYf46OXpUxGpP7CJb4nBhXw92Ek9Bxc','user','ak_1c1ac8619f43c1cd','2023-05-01 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$U6pXLlXpD8MXHQUV9t5fNOzAHGxwwaQB.aIPIxh.dE/cXyin5KZtX','user','ak_f3cb69df542475ea','2023-06-19 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$7zUBbnWCn7u2XR7a0T4jQ3S9zeVgqaxojlizdZ1h6ChBGoAP5FfiZ','user','ak_ee0aaa553946d9c3','2023-12-02 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$aH5PE9s5Yg20qjDxSlje0smqtXQ1hVOGXNWI8YE91QABs.hwAHZ9c','user','ak_b5b577c32cdbf667','2023-02-24 10:06:00',NULL);

