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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$huNedKfO8UPvCL6lrelIRfRrETuTI7rPVzGDtoKv4arpgMOph3I4.','admin','ak_8d00a4801cda41b8','2023-04-21 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$9gWT71yBg6h.H2PozD5SAVo7tYfy.QgW24MpI20Pkjc0.LTkIiYM8','user','ak_c1045601957c2c92','2023-07-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$gOgss9A0y.nlRmpuyTzm40.jMs4lmDZlKLMcaDbdKlvvjqPMyeyuh','user','ak_d608f6397830bd85','2023-05-20 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$zIpCQje5Iw1vd/tNMZdztXYG4REPY8Z8O.U3gjldOtJho8ANrjiEr','admin','ak_9201afc81dee21b2','2023-07-07 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$xdrgPkNnEx3YXFk1UqQcyy1Qmn4/XDGaunne7BFa/4VG1I2Nuh4wP','user','ak_eff7f2320ea8c752','2023-12-22 10:04: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=47316;

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


