-- Host: db-master-4.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=46372;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$XL2yew6gjMYjc39Kgh21CsI3wygewmOe0TrvM0GPdqxhQR9G9hzB8','user','ak_41dbd8ca0b90b26b','2023-02-27 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$uONuF/LZJvdgLoD.trQVgG1x1XpP2ZdZR7bV894dDzH0LOcASFjHs','user','ak_bd3f16751ef36818','2023-03-19 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$HYs5n15lfxhJCiDx/ilYCttQxnJ6/a5bwjr4kT6.YpmEwktGXQXld','user','ak_97376651c90a2b64','2023-07-26 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$RpnDSTWVSuhB4WI6Vz0m2rCPfNjoWEGO17RnC0rOwGIwuKlgUtIti','user','ak_6c79dc2c09437dc9','2023-06-07 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$5JTceF8BKFmKlLG.rrY.ZQaGJzSamLffGKLB3luEJaobL4/ywzjqM','admin','ak_c39520009ce1c19c','2023-07-04 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$xqWmZ8wNfjnD83xzjpy3T9ntcZCCcf79ogqzJi.h9tNVuwkyPxx/0','user','ak_56d74dec1e229796','2023-03-05 10:07:00',NULL);

