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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$CpxzkiZ1Ly1yWM8AmRemLqhBz.3NSpaLFccD.hssOgcVHgQwaKu/O','user','ak_f04e0500334ddc7c','2023-04-12 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$PjIGrKObQ4QXcAj7WMEMV/NmrLGZ8gFfy1Kv04R6bubBqAT6uTKQn','admin','ak_31b564c9dbb7ae82','2023-04-22 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$Q5PwbJCrS0dVzjMBW8NGYLTnpsltXLdVVtASfM2Zcm3BiYEtuu.5Q','user','ak_9f677ecf719e9bf4','2023-12-25 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$kIfcaTT7yw3R.awYkqhwJRpBVq/S.nIWFrRdgTpioKpv5vAvmZlsJ','admin','ak_a23c7d30a9d2ec79','2023-11-13 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$lpkeZXapZ4phaomwFe4eXTfd70zDHL0KIOX3I68ykxZgnbdwljzA1','user','ak_e8f4cc37c58584ee','2023-01-01 10:13: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=30026;

--
-- Dumping data for table `sessions`
--


