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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$O3xIHwR/5xmUZrZuO5m1tdD/wV8vVCS8W25L5b74uDlwb5MIqKkPU','user','ak_fe18908de4e18e1d','2023-08-15 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$xzYr1CeBQnq.rMrOtpt0fR2oE5nHS/.8hY7W3Z8OyGyz6g9SRRoFI','user','ak_933f1bcb2821dc8b','2023-04-24 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Z.Hz5rQYWfdnzZPUqoyTB5BvX1drIRvtihpEL0Z73tASQPGHbdQYe','user','ak_5c6831d0ce7e47d0','2023-07-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$B4MS8VSgaC6zqRqKVyQbfXhtfui0I4o5miVk82XPiYsXoc1anlTuY','admin','ak_44b4d1ef34302288','2023-11-07 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$V8AljUCZUFDsy9/MU72PcUaooNWWK4DU93M.XpYAegw/QNA/99LzU','admin','ak_899a388b5a07c50c','2023-01-16 10:15:00',NULL);

