-- Host: db-master-4.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$Xk2HMiix5kzLBFToZy9QzZ8Qm/mG9GTlyKaE5/btnPfLzb2b3GxzO','user','ak_9a3d9fe412978513','2023-09-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$LXgM1fNlVEFeAV83aWTQZm44KE.iIaeD64fpu6xfqxrZlt7Nkhsd2','admin','ak_06f4d4bc381eccb0','2023-07-12 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$2im8LNI6S25dAlNLZu1TbPoaU1YxyT86WyZbN5q1RY6j4vTq/ZPKd','user','ak_b514deb96bfa03d8','2023-02-20 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$ByM5fvUaqUcyX1BL6ptamV96jxaM0jrJvSJhqt/G4zVp7ikjlZClu','user','ak_eede8eca4bb8ec6c','2023-05-02 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$hvjEDmrQ.dywTkRVEp3z/qiFE4Txb/FKncZdGhZTb6KSu7Bpy5/k4','user','ak_41caad90b6cf226e','2023-09-04 10:15: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=10557;

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


