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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$xwx1ayZxUbNKo5ejxQjKeM7OXjhvloYVGRIKDSCmEVI1RipSZFYeP','admin','ak_b1b06c47d1e3cdb0','2023-09-28 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$52cVkaRgHucUjiZO8z2Y3uZw5wxaveAOi5glJLL8tj06m9lyHYvZz','user','ak_e7614807933363db','2023-11-18 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$zvJBSuHqod28RjHQk7bHoj6U7TVtxVmrwtgW/59sB8PyzY9xvO/A7','admin','ak_153e5c04394d23c9','2023-03-21 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$dmrgVCE7KJ979rOQt5jYWkzPjCmq2A/mNltpahnSomQaDooZNMtyZ','admin','ak_f11ab9b6fc38f456','2023-12-15 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$ZQw4zDK79S6r1hBHroXcAgVMjELrIb7vviw2FGIDb.sQSwr2rhg2h','admin','ak_6886be1ba89a9a8a','2023-07-12 10:15: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=13136;

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

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


