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

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$d55RP7vULcS6/7pWxGFfdkw7TtC04ncbfSl51VgKNSE8ANEHO2.SF','user','ak_b9f1fa968d69f92c','2023-05-14 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$vqhGp8VwPDLBqVeRdD.PmtylBrIo2TyZKE1GD.QGCydnNL9iSbLWG','user','ak_fe864cb8994cf852','2023-01-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$AI3zUtTeEMI4FA5Q8kirAzjj79kjIeMZpFxyXLpH3Tj6lRmA6VcHB','user','ak_126a846533580e19','2023-04-02 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$F7kS76GTAWa2MePuVe6fRX2Lp9u8eaPp3rO0wDenIJsJq3Fc6ydaw','admin','ak_6e588c20bfafc5c5','2023-01-15 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$HFhl/hCHDvB5SpY5aaRCXV4.e6ffgYlyExHOrC.Bv7iXZBQfemIKl','user','ak_e9ffcc1174d68586','2023-03-17 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$T7gLP/vxfGQqF7DR.lw.fRDx9D.zdEBbgHTpqL7nKMz7q/2eeJ4QJ','user','ak_1bb4533786df75eb','2023-11-26 10:10:00',NULL);

