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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$gO1ndrmYjsDNxFoLcSmexcz/YGRuQm0Qm6m0wNFq2sxTftLmC68M7','admin','ak_84e6dff1ec9f8249','2023-01-15 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$MFU8vG/Iy20q1qnIHtMbWbvFIXXm3kUw6zTxuXWBmFgQ1Cjtqc4EJ','admin','ak_459266ea5be65ca1','2023-03-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$9e9X89mxV9lLCHJsXxAJYVPEmmApQi9Gm3BmmrwZtCAyKq9QSNU9l','user','ak_f94f781316c5673e','2023-12-25 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$ku1aVJ8QNmzrZDlfa/lfe00GZdUHYw/CiGLHM4gbwtlz0nFd1d5Op','user','ak_127d1ecf3b8ed93a','2023-01-05 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$wmTg0PtSqsjzEJfk5GiDawgsHRe9MKa1KLak1twwHXyqsKA8iFt5S','user','ak_487ae7e5b57e7348','2023-04-20 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$puwQSo4GlC/eG/7JYyEtDdsbifMKTKiLmsmUCMIU6sHqSC0kG3PKR','user','ak_3016c84bc509c5bf','2023-02-20 10:02:00',NULL);

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

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

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


