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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$OXt9H/uvUOU5wwgkhDJJKS/AJrKdSvRX7ZLDM7Va8t/.iceIVF4s3','admin','ak_6dfddba88e769fc6','2023-10-19 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$ELIBSR1jbGeTvhoS6a1ZE7TPyxBIzALPxspJwWGcmUS5e0XoCS/k.','user','ak_94224a1d341e0783','2023-10-26 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$0euKWjdPfUiyAM9ScCD5tzfCx/3ggBcX8/qYgTt0OQR24Q4jvjpO7','admin','ak_d068ec552b2b63ce','2023-07-10 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$UnNH02BFWWFLgYv/P7lt4bDztMlXOXCERNJWVpNtAM1iKOBH6YtQn','user','ak_bd06c69c4eebe3a2','2023-12-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$14SiySFQhuTKfgPlnlaQHTNePcEE9sE0qhHQw0/g1SKc7Zq1jJDU3','admin','ak_2ee5b9a6ff0bd25e','2023-01-24 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=3446;

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


