-- Host: db-master-3.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=49720;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$WBaRE0w1Z/uXykpqhCNXy0EXRegHYz1Ny9B2Z8WQ2BYynOzVa.RHB','user','ak_a5e080f30f75b422','2023-02-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$6E2DL0hmDTBD5yIfhly1ZJIkcdru5UcOWGJeevXB6jh3u559HyeWR','user','ak_062279760821d8c2','2023-10-24 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$liFqWIOQZjEaD.yJ0.aPNLnfEVATfasGFUcyR6Y2gRDPJimptOv3C','admin','ak_40a30300a37a025c','2023-06-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$jw5gJCH3StPRjFNcyTlxaMxuTlhSpY5v5wd9yRY/Eu6kqGrpa986/','user','ak_e5b11a6bea0bc10a','2023-01-19 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$3jRAMYQX8W7JiClcKDzFYLMrHjgWbcFpPdH1rB2XKtZdc4qUtUAOJ','admin','ak_6771bc7e0141e05b','2023-09-14 10:02:00',NULL);

