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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$wdA6XZXmo44xwt3hEXScPFQwG5xqEj2apBkzv61oAZeEyYD3OET.n','user','ak_8e15e87b354cabae','2023-11-09 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$C27qK9tNmjAnZweuQABWOUIXFfLECvo5LEEPgO/2C.qVzDcrazBXS','user','ak_29de120d92efeea6','2023-12-01 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$/36RUx1SQwej3Qu6ZGSELSo9J1KeobMPXcTyfAiD.1BWeVob49Nj2','admin','ak_8c0e05317e91c6bc','2023-01-27 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$npCmIBQtFnIhxlsCvYmncZwVM746JvUq7CUqOPUEMewvDSJZhghwS','user','ak_4fcd9de0d6810e7f','2023-09-24 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$C6869BuEgbsHTQGw4S3Am62sumWTAwzLHW4sGo6LmDbSCfr6dCTYR','admin','ak_d143a3e91fca9bf8','2023-08-09 10:23:00',NULL);

