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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$/.NMAuMPhyGwSwfJDaucrtAgp9c3Z83nHe3PFceUxZD8.jzZlKTGH','admin','ak_9833905152888018','2023-12-01 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$gHL3jRoSR9UhbwSmP71km1bz8oOFz3IU3vy8.cNKFRln99xNgLkw4','user','ak_9cad4d4401b4f0e0','2023-06-10 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$RN0Xpmt33v6ozkrkK32NBWYOXchzs1X/cJ7ar/fu6DZAQ3WToY6Ox','admin','ak_c7366b8f5a0e5cc5','2023-08-01 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$tSZiM8B2boKqwH.lEGMgCTkPKipq37nIqYtXQa0bPCvchH.a5.P5D','user','ak_2b2810f4b769d9e9','2023-07-09 10:02: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=44575;

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


