-- Host: db-master-1.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=23913;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$VHcouVjM5mslN8TbR06FxIVzzp2F5UZ8m/ljyCxkhpRgz3tbLtsIN','admin','ak_cd7c9f8c01cf3b5e','2023-02-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$oTjwKL1J7bUIjzQWLw9J6lBqtTI3q0iCiv8LT2kZShSIlKgtStnc8','admin','ak_33722d2c76af5439','2023-09-02 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$wdLx//lzJKYTZovmihmpsoWlPUuaeIIHRcnmv103mKtnGFUBEx08T','user','ak_639161ea927276f9','2023-03-26 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$u9M7MtMXD9Xveu.bZnISRoFNcfcRyPvXtT1PsFqVMKEj/RrcXWy5w','user','ak_f552461f91893f61','2023-03-20 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$JR1INBXaEobNWyPkVhyCsY1tU8cUUKdsJk22VM0YM5sWpr34I4Gr.','user','ak_1d945b43478352b5','2023-03-07 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$Ume22DY0qQYek7syt/73a.b9oZKYa6k.h8nq9gCOAD4SB8AneK6/2','user','ak_779c36641d3d3a12','2023-04-16 10:09: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=8228;

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

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


