-- Host: db-master-8.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=25561;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=18553;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$KJ8THrICiQa8Wxh0phNqAMJi7XBnC6bcYtTvLYD9h4X27/IOFPxrf','user','ak_020e842ee936ff16','2023-04-17 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$4mcgyJMw4Ouu8/RFemTZ6p4/.kAFVASt4ZREd5SusEWQm5.KZRhbe','user','ak_dc0b6d7c3cbfe80e','2023-10-12 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$TTJHiUnPT6lmBfxCte6Mtp3K0HrW8UdgI6fLXWyVuxaoRHkMQ/7pj','admin','ak_f22d34f70803e5dc','2023-12-21 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$lGUR.SOmblr7YirBs.OThohV8xyZPBbFH.FVJBdRYYp92ZlnxkMNF','user','ak_2bf587800760966a','2023-05-09 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$rzg/zQEcRxH6FKD5H0oGcP4HDs8.HS10Y6ibGkjCHycv446rJJn8w','user','ak_cafaa380b77dc785','2023-08-22 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$lCK/UvEOvklpyc/a1vFZo5QdjX3IhCeeN/VGb/A5yqQvi6EpTs7nx','user','ak_fc4b73e4e6167292','2023-04-24 10:02:00',NULL);

