-- Host: db-master-3.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$z9iilOkF0LPSSJtNkKpLJ2eLJGb2Qo53PPO6kjPNJjCPNeKkG5cv0','admin','ak_f6a31cec80251fca','2023-06-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$fvbxLFsj8vIZCWiVNZWAk1DGY2Mw.vIyL3jXF5ZwoAjNNPC0FZN3o','user','ak_d1aacc601bb1b6c0','2023-05-08 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$MCDYvy87C7mO1Y6p5LAKXgOoupGkoqNE0erLW2cq83WjkbFCoPklk','user','ak_e27b7ac85c0d53e7','2023-06-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$IPag1LKQRyLqc1n4/roVs5XLePe/pn.Vq.5r9OStptT1eSvMnuxtk','user','ak_65144894e10e1eb6','2023-05-20 10:14:00',NULL);

