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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$pHcQrmWmMUPYwAX10CJ8ETFI2lByHHFYkIe.sWAhHsDevZrjkESiV','user','ak_644b1eb78bd883bf','2023-10-24 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$ks.AWFc7imhVBk6YSRTLr1A7LgwXDe6cGD1rsCvXwGFfTh/WBbLMg','admin','ak_b9cc9062411464c7','2023-04-05 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$E9CEy2f4T4iU5L0Fhnw17MbjW/XSh.30vos6jBcvhM3Hpv1FuVy0e','user','ak_e0545743e8d6b624','2023-09-25 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$0fdK2zNeH14dknubpwVPPzXl2c6PNdLH1G7ZdXVJiugOfaNdmXN3k','admin','ak_2b9245d51cd92fbd','2023-12-14 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$/QjTVu0ucFppc.frW6OF3F92f4uUxNZ2SBJpXvBZmiSlr1ABH7DVn','user','ak_0ddd0a807df1a574','2023-02-23 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$qnytajqLbT/QPR9UvrWdCPyi6GFZKA8/J3AiI4E12AMj7sYNAl7FV','admin','ak_9ae59b0630d7de8e','2023-11-18 10:16: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=45221;

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

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


