-- Host: db-master-5.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=8273;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$1/JMOgh82njOD5L3QznZ77sYSpUNffHVqQX4WUzElvSKKPRTc.gjS','user','ak_905c3419445e6876','2023-01-09 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$iR.bDhpSMtSc43XQXrAb.MDtlTylgPtO6cTT92TNp0oQcvQlYCw2r','user','ak_9a06f00febcf5646','2023-06-14 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$eKRzH6LpsqblwQXulJ6Hl0ltY2HTLATmMD2OMHJKoPcZn/7DP5FOw','admin','ak_161e427085ba04bb','2023-05-20 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$x.hVX8loFR1BwIkfJzO93tCd1y2Rer6HiHGRKq7cRoWk2hIaUfsxk','user','ak_07b6fd3c12c8f969','2023-07-14 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=43870;

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

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


