-- Host: db-master-2.internal    Database: webapp_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=30782;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$E4rU4kYCmi3F8rXICOiAfbOR3QZcBCgPbeeLZ6NAXUdp/FZzeX9lU','admin','ak_3fe95a8c1736d392','2023-02-28 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$719pq.epvJcqwbp19NgmI2u25y7W7CW/8Pj3yAdR4BR5qur2v7z3P','admin','ak_cead09a186fb9efa','2023-01-14 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$oMy./sDxw4/ukkzzRa8ru0jy5VcH9mW024MYtWYNRiMNwn.fYdIL5','admin','ak_9f7cfc96cca84e37','2023-11-22 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$ByBzF9AJLgeMxNVquXyV3pROhkqy5vyaIHDBgZYYphctTmHdKSN0h','user','ak_45d879f4fce7074d','2023-11-19 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$mL41AjStk/RRAbLfBtkYAN3cKrxHZTzbsnMidTUZIW8y5vCBo78LN','admin','ak_7dfe627a8f2737c1','2023-10-03 10:16: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=8974;

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


