-- Host: db-master-0.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=46289;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$7sYF6HeWsUZDbVy6wstIodxUQtR25kS13KfQa5JkRGDA2Tgsr2YKk','user','ak_ae053ba12cef755e','2023-04-21 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$UPIAq.7dboz5s8f.Zw09BqJZnfwitCXrRB/dlPO6acMWbnGfVu/NV','user','ak_7b47762b3ec94046','2023-08-25 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$VzUr7P9L.vdjhX0CYnj5uAW/SMjHTlnlgdvJsL3L2I2lWhZaaZadM','user','ak_5637dcdb0648bbd3','2023-09-06 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$hAxTBP0jDnqnT7NxMd0ygO4AlxzgQ88CwYEN16I2I5WF8WWiV3cgA','user','ak_35d750bba3fd3e0a','2023-03-01 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$nHtzn1okdo9QpIRVJbt1B8dzCEVE2dzZV6ct7EOxcXTJoT57wJFsz','user','ak_c924d59477bd56c8','2023-08-12 10:18:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=44669;

--
-- Dumping data for table `sessions`
--


