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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$hkuI/p1gfJ16N/l.Rlxh2okp6RRiA3lld2qRPXJIDqBl0Kf7lRDzQ','admin','ak_04e9b97f16758b60','2023-06-24 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$PUwM2c2mhncKHn9UT7lxAlv9EBtbBiQZmVHh1l2biGCOjY/W7acVI','user','ak_10423b6b315faad9','2023-04-06 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$6ZHxiWn.hXes0OerfWDb7NjAAw9qN5YJ/Oj7qSs.zvh8F2ropWqCH','user','ak_8824588f85f809bb','2023-12-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$WCifiauuMtyjVyN44r18j7qHpujukFn2UKOI01AYK7rZuOu9jlZxP','admin','ak_83dd66790050b648','2023-09-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$ZEtPsFH8NcX7gT0oWfQSlC1InOPJnrRyGyhuJ0rcAfwJJL4Rrr9Q7','admin','ak_cf185fe0d9d1fbad','2023-09-08 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$jjlxIiCixcvfo0DAh/Dc0g0bTsIT.XxuPSUEwL0qWaYFOBJCTPXX6','admin','ak_d75dc7bdb9850eef','2023-09-07 10:00: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=42265;

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


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

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


