-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$SxbkZSF8EFQ4EHI0LTLpfV9SIw6.KK5WcSwSPqFRSR44K6wTdqHQN','user','ak_55dc96172b666484','2023-12-03 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$QyYXyhyPQfEI7x3dJpe2dyXInD0iAbzQs3sZ3ai68Q9B66FsEUIWu','user','ak_b09396f17bc51829','2023-11-03 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$uajpGgc3/lveq6gPglSRaaow2fyX3WDZWfy2re8PABc2zHQT5e.wm','admin','ak_6df81073f64d1bb1','2023-10-12 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$WJb2Al1zgea5UA0gd1b75wfkTA6W6cWkOltOBcBEGmuCVzQyazKSr','user','ak_7e189e487255c44b','2023-05-23 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$xt2CzcCoM6KPpuSyL7dUR2ZSecS2Or0B6CGFuqRWrZCgU527JqRru','user','ak_0f4a62217cd08aca','2023-05-03 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$ixp2nm2zwFKpcqQEICcRJnQu9ntjELWPOpDEMrqMuridMQO8kjXvL','user','ak_246332ad456180e7','2023-01-06 10:00:00',NULL);

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

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


