-- Host: db-master-1.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$QPq.zKobpmfGgN8AO0GtgPEzf72r.WJu0955190RsaVXasJGsjiGG','user','ak_cb0ba92a088c815a','2023-02-08 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$0DR/tf9cQYLxVFly7mpRIM0YkqtrfiBbou1V0/o1YVeXsxJESPEx5','admin','ak_ac6f9ec30d6044bb','2023-08-17 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$y8qMBPfH4kSuXidS/R5TzccmdDpHKpTtnRdUpvD.RJSFOhwsBocwg','admin','ak_988f6ddee0c847ff','2023-08-07 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$VGTZwVwkDG/ldYnEeW6.SgzLRtKPboaLGnZx.d6v3W/zhHuKWmxF7','user','ak_a0d6c5c9ea438f2a','2023-05-15 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$Li99o04TpwHyo9rYa7AQC8T9oEltjIGu5JgOPfQd7rUbtiq5M/k72','admin','ak_1d40dd971304da1c','2023-06-14 10:03:00',NULL);

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

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


