-- Host: db-master-5.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=19078;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$wfpCjjaPyW9C8weXDJrLF5IjzHcvXB2X44WuXdrh6G9x26QVXQQmQ','user','ak_e0edd3fb3f917ea3','2023-12-05 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$onqCErnYz8pkfD9MxxbAJAZrf8c0wHa3TgAK6eesGYecfe.xW/LBf','user','ak_40de5a0fc8787e55','2023-08-16 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$FGw9g.t9yjnoRfC5u0XUS31foNxFQjon1UnkNiIBK82lpA84MgXAr','admin','ak_6ec112977f537726','2023-09-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$tKL469mj3ODs/mm5jL7TyNuRWerjElMwJ0iQqoLfyKONC3/J/vAvg','user','ak_a034e94f281909f3','2023-11-18 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$cFpuIr4pkzAGBuoi1qk0KpXAUTVoEe58zJf1s0UaKE8EWuCdR/duI','user','ak_484bd8e121d3ccb9','2023-12-23 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$30Uvfgj7Bs/cqKyAxFeNCUtMXZhaaGEgmgckvWZNOO/eAgB/FpVJE','user','ak_fb55c970f90dede5','2023-03-28 10:15: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=17769;

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


