-- Host: db-master-5.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$kGisk7LS6JUgMnHrqBodIQKsn5zNudxlnO/FyXQZkETIstsYRa8l5','user','ak_1941f3908aec07db','2023-08-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$KiHpfa9jpmlP0FbKGcfCDkvcyKXqYJ5T/Hmm4tHLZLqY25RYgBYqx','admin','ak_4ddd00d3c2beef7f','2023-07-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$un412fdtD76ETmXcSnk4gfZNGuV1B6aV2aqrjvXL.SrBGNMkmuqvs','user','ak_fec7ea358a52ae9f','2023-04-24 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$EoGXH7WNUL7cT6QsCoMoiUWiGXIhjldo6m.bH7./PKKifGGfCM.nx','user','ak_5bfbc557ddab5035','2023-11-25 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$U0aLWcC4xu0Rv2/v4CVOLYu0yn2AFPsScE5fOiMZL7vSQo1exDFYS','admin','ak_74f6114941a99cbd','2023-09-15 10:16: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=23576;

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

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


