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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$F5g5Wms9R6TGpZ2mCvbhh14vGB35Ea4zu/zZiDttmbHItuWJZ99j.','user','ak_06780db0eb89065b','2023-12-06 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$c3jn.l5bl1xZSq6P7BBjeDvGXcu6WjHNcYLDkJZcLZT/yD.5zIke6','user','ak_ddbf326c98f61980','2023-08-06 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$WEKaxjEyUyIiBjM9YkLa.LU.w26te1.1YbZuehPG2LJs4IdLX2kZW','user','ak_b72b02e5929fc5bd','2023-12-09 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$Tce2hHOiOAnqJTESiZRgaaerOLLhBXkldCDnsoqWd55syneZl4Gm2','user','ak_1a3dfab84855ebdd','2023-04-20 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$hOIdcgxyPYGDCPZw4y/w18a4YfKoOCuabG.fW5dadY9WEM5v.JR8o','user','ak_46a33b6c470d161b','2023-12-08 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$Qa2eyPBYIOBOFNRIRBm82qKi0bFlMcSAzjuc5h.s9eTa8S51M06jZ','user','ak_1bb2e0aa548d3bc6','2023-09-25 10:22: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=44972;

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

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


