-- Host: db-master-6.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=46580;

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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=30405;

--
-- Dumping data for table `orders`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$e3N08x9OyGQz7ZFd7FPf/zNIhNVQTfZRHBUt5abvOcVVSj7cYJKua','user','ak_bef0419afb77ab67','2023-03-02 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$iawWyTMqpOcMcVfG.n.W7ANwd3wV1PKB/SJzk6Gea5HyS1R9bfaRO','user','ak_eea12d997da84c7a','2023-10-04 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$yTy9PvARb.8fN7BuYb4yeZsjtdJ3KSrAzpmLIvhf6QkPZ4mZ09kni','admin','ak_c816994a424526d6','2023-07-02 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$kvE89s4BrKp8t3fxGWJcfMVrgmx7Dva1Y32e07.3B9Y5qW97JeXpW','admin','ak_324acede5e323d9b','2023-02-02 10:12:00',NULL);

