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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$BCpJGwws5blgZ1PJOGWXSzQ/wcKhE7nJ1ynmkNp2hAfDT5cp4AwCn','user','ak_a7500c87a1143288','2023-09-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$GySG57NIMYA5H8A3b8quBzXH1J9Kfjmcd1bCQuGtLzh8owpx88c/1','user','ak_b3b58c84fd462eef','2023-05-07 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$mqrwvT/bsSIOU8n4jKMKIDYOec3KCwx1YCwuiNocyqPF1jIUwSRub','user','ak_494036980066995b','2023-07-15 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$nOrm9rUQAq/hCLizuFUns.spJqUMnsEAo7HTCz3SmZUFbKSpa.YLP','user','ak_89215f56ce05802f','2023-08-12 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$031ngD.Sy/jIdxivQYyrndPn0hTJfN1uxrOIQGmc5//lqOCFvkA1z','admin','ak_e41eab475ade85ff','2023-10-10 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$zv.Vz8KOkrLvES6Kj3yHazR4oBRvrwcGVhwQDAizzQV5eBL5b238S','user','ak_c73cb12a3d7f24fc','2023-07-23 10:20:00',NULL);

