-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$NsVl.MJ/JmhHRicVACUbjEH.knOmCOxnqqoh2Tl6/EY5rwXYtXz/c','user','ak_35114bb5e9d3e17a','2023-01-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$NXfvjwZM1y1zGlmxaEmrMwbYNKVlF1FT2FOSyYFIp5IHSorv4KOOC','admin','ak_378f29feb4f01dfb','2023-06-15 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$MlriUQgy0NLP5MWNUsAuyh8iBd2eAmtvWMkuPWpNOKvi5q/LcksS1','admin','ak_c8fc5ec123a1842f','2023-05-22 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$pGBCiU1FkOtEq9jBXoUHn68WTNz.ZTYydMpfOAQTA.80TOwrlfGBQ','admin','ak_3a2ffbb4d8f7aed4','2023-01-07 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$MEZmHOszLSr/B1808dXD4c72egzdx3JrmtA2Axm3U.eMi45SHHd7x','user','ak_41658d64726dd62a','2023-05-14 10:19:00',NULL);

