-- Host: db-master-1.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=33786;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$S4pGt2TCI3jubelZuCUXmuo/ZD1wrSyRy.YFQli4VQLqiTCI54KVQ','admin','ak_77625f894acf9a05','2023-08-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$jdA3PHtT4MMkh5IcNc9Ef1.EJ5Pkx7r/OckNaHL5nIPOnmPBMJTzA','user','ak_4b59dada1fc2546f','2023-01-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$bRtAKHtSHIfFdRPtjORsesXQ/.UCoDgzpLPG4QuN0ldUPaCvo9gW4','user','ak_b7e03280615bfa55','2023-04-11 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$1QlhPur22.7Nn5u/Rzu2VObv7Qk/CTKKMB52oXYRnGq0A8OIXicFF','user','ak_d9acccf89e1ec4e1','2023-10-20 10:03:00',NULL);

