-- Host: db-master-2.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=6491;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Cz7Evklq9POeo.mtC4gM.sM2KxvO8/Sr/nUpM9pO.m62hcndxgj6m','user','ak_cae74ec298acc286','2023-02-07 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Xvc0PWxleEFlxoIsnSoMM9VdJekgvqPBZ7eJjpW7z9ckNiompCy0V','user','ak_c56e76a0fe28bb46','2023-07-14 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$vqX7Hb6Q9y1DEqlYclErWpvmo.5dmH64jEaCQX4zgbU7eokn/qZzx','user','ak_5f85fe74cc310cb0','2023-05-25 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$7ggRtxrIDdjAkm4Pf6Dwrk6GtNYz57L3lAKSAZi1rZN5iK9rIYfiq','admin','ak_458b426cec70b978','2023-04-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$c9P0RHxkYmP6Uylt6hbEKAEBbpabxiHHdY07TjWhXIK2ZVystBUNO','admin','ak_01e5755e7eb539f6','2023-03-06 10:10:00',NULL);

