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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$NZ/QmU3MN11ICycunjgRZ.VmMJ3c3IMZWtt1V5ZpSssSKa98jJS7X','admin','ak_f107262f2e295cca','2023-06-19 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$8nV0vlpwwMO35592zxkp73aooTcGn7ZgJywx8p5VYpCWukWmEa.7M','user','ak_67f71ef0128a8654','2023-10-08 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$adqqv7ebt53GFK3RBdHFJhP3i/1MZAlhcc6BE2vEqL3lYzLzzyH8u','admin','ak_4aae866bf2bfe6c7','2023-03-11 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$djFqaRZQIqmI3sxw4xLzBiFS2dn10WeScGvXAsW3FRixN9GlVf48h','admin','ak_ba11c3dae411e3f9','2023-09-10 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$PnPng4YqvaqOyLVrz2E5hIKIgit5o9kLEzkcnes3KaYj2gzK6odnV','admin','ak_4afef2045fd8db85','2023-11-03 10:19: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=24023;

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

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


