-- Host: db-master-0.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=11575;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$DDzW.R8XaBvEKz/kwYV9ZLX2cZ9aLYYX0ZQOXEJecxr4ER./lrbPF','user','ak_ac631b186d947c48','2023-06-26 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$/HPbKVmodwUD.sXwzywKWpIkttb/f3NozYnlQkw7myb6z46YVPU8d','admin','ak_a13cdb7f387bf515','2023-08-23 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$eU/Pjio7chdQF2DVr6VVgukgckKk7b8SBjJZyPaxVivTG.DWDAIh1','user','ak_367e90373dafa3ad','2023-10-19 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$ZJ.6SrzBj/eBN.fcdQ39M0GzYvyQHK9OaD.07O/u8FX1J8Lh1yVrE','user','ak_f55396e3a5ea005d','2023-04-08 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$1k7gH/tCSo4KTd2pwSNi/PRTY2KQekiUrza6hDRRSCEWmbJf0mTPK','user','ak_34e306ba12d0a1dc','2023-02-19 10:17: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=29268;

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


