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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$PtZIyvsrVpQnCEyOYkBixmbo1UM/iwylw4b6e1jjEXV.RHLzQkp0a','user','ak_8c3a0c89b7c14dfc','2023-12-09 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$TJSA7iZGI10neI12qzZTkJQt1RBUJmgjEYq/G2xjk0nNG3HpJQZ1B','admin','ak_9605e466dd2e8331','2023-01-14 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$RbKlU.i1F8HSTtJBCJ8lQT2rHeDXYD0FnQy7rWfOTYlsNKJIrvJLT','user','ak_5595b84b47ba7487','2023-02-26 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$wbx8m0sH1NtRfIeMaHiY3rXVylG3qrgS4SpRCI1yubgz9tOwyivMk','user','ak_365cd77deb733ba5','2023-05-27 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$rGCqS6WaY1izsFAreGH3.rRqwbTBd2DEZSqPcUWlVMPGElSwr0ZTb','admin','ak_645bcbe7d6808c7d','2023-10-11 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$FBXSpSXD6Seegxe7IbBgi9UWPu.Do8RS4FKAuL7Qgp8U1QGV1a0m8','user','ak_68d69261b3bcefba','2023-07-13 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$wfQ5/IhRBXB3T4Gc8N5XHTPEw32QA0ddOWunBINOYs8O13glJghZr','admin','ak_0192dd8197c21cf7','2023-03-01 10:07:00',NULL);

