-- Host: db-master-8.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=29763;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$VwEwCV2zbiRYV5ZzhXf4UwTdsH6/aIWrCbr5Ak0XT6oaPlFlyV4EM','user','ak_1b1421806ea4060b','2023-11-25 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$wBBgA5oiABTa3vkxrQ67PvSR.oyG98ieZHwm6i2abcWrMjGZenr9P','admin','ak_9632f811d9b90f1d','2023-05-24 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$fjTolFwXqzUcFQI3wbYElD2ovNgB.WdXleVsXIgt4qnRttUxt6qhE','user','ak_d3fb4bee45d856eb','2023-03-03 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$iijCD.d8IJ1uC/.y.4Ni90hdobbHSg4gfngjFcxf1VSVUi49h1x0A','user','ak_60f73df758abe03d','2023-07-16 10:09: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=24558;

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


