-- Host: db-master-4.internal    Database: webapp_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$2j9P2NKl.FU2qEOPLnvKAYGc1LZ9fHieRrxBD892Y703nUzLi8keJ','user','ak_3585c1e9ce4e3802','2023-09-11 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$64vaJwNm34bkKaxNlyJnkEB1lOQwWoRZLG7MpDe/Pxg5h9RwIWqly','user','ak_d08a61d4f7c109f1','2023-01-19 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$dwWrF06te79S44xZXrTl/F/ccHSLqNx4UMyW8Ra/80MZapf/t4Djm','admin','ak_27a969129892c33c','2023-08-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$qDmXNMTDk0vD5EvwjmdFhMwWvmKSkZVmheaAI7EG9kFAnE8i397mv','user','ak_ba2f9e4fa2306a62','2023-04-16 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$6GfH6s18K73bMSOEUFbQlwzo6ctXLYWBMqDCeqnfGImwYhqpfLllh','user','ak_8dea32d70d2be02a','2023-06-22 10:00:00',NULL);

