-- Host: db-master-3.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=41272;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$l8c5R7CXYsMx7lo1g0Fk173H0P.4UNNRyv.rrKAQn1GbxU/xMPZq2','admin','ak_32f94267119d2a2f','2023-11-24 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$eo8iq2DymFQsqkPD3CHqLMuJU8c5JON.3sFkee1LkqswSVGxD054L','user','ak_298633bbb3be0277','2023-09-05 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$m1.WEo18b1/vfomJtH4GNpzlgpCnnErIxu0R6szdqrSlNU9eHERVO','admin','ak_2bc3a2a84ba78870','2023-01-12 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$0CXvUcP/maBSv3wxkLoD5H69EsLuRuBs4ctRoPk/GqtOosjrlU5/p','admin','ak_362fb1f32d3862af','2023-11-26 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$Ol1A9dSqCYAXro6/7bV5m.aPymIkhYQFXmCuQQglAyDjzX7rQVzrv','user','ak_5761b6f14419f609','2023-09-09 10:04:00',NULL);

