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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$kqA73nf69PBdIQ4yKyZTQFdp4jrhogCZkDv2usNTkBnA7PtQCMr9N','user','ak_faa4418babf7b1fa','2023-03-14 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$kR0dUzT/itvx7m40kq3fwENEx/N1ndxTfd2zhkc9YgT57sQDWKZPU','user','ak_a98538bd77609ee4','2023-05-19 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$TZMsAIQMN1eD.RxMy0d6GfcMbDbWv8uqAqueRK96wb2UcbOIfj3JI','admin','ak_5417e8a978f8d424','2023-12-26 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$jfu6nnoG2PU3toxYdNeL9Pz/lk8PCainIOgRxq6/6CLZ5eG9OwlYL','admin','ak_c32bfafa85cbb1d4','2023-06-14 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$9XA/4j/RoylmktLJIa6CZL2KpOlScMCwkuSGtCXjNefAdM9YXUm3L','admin','ak_511bc827b1043339','2023-04-11 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=50529;

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


