-- Host: db-master-4.internal    Database: customers


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$TkOwQv4WyHf3PTGnPCDC.VNT1LTaN5d62O7G0w45XADHPvfBcgNnG','user','ak_c461c9f706d4c886','2023-11-26 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$o/wwFtM5mIh6ifH3ga7F1zRHEw3phfbT0yR1zbel.WqqUP/q00.Ue','user','ak_2c1f6c110b068d06','2023-07-14 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$MTWuetrne4sVHvvaYsMh0UOPMdCDo3EEiFieq.7zrwwH2t/AKboAQ','admin','ak_e93e99d62d9346a5','2023-04-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$plxm2LQAIi27RcYtF0fzd.zEdgSVH8PnLnMQ0GxNV263DsMT49o72','admin','ak_271eff9eb7ae30ef','2023-11-08 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$TRceQK7wVZH97adN8C7HkShgivbLYtIe1g9asaGr.ZUCQI8XWBP6K','user','ak_e86440bdfee10ede','2023-12-03 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$FrdjPgMxTV7vc.JNHImdmBr651T44kAUx7EFjadpwmq06q8kaNbaG','user','ak_c850091edbcd9aac','2023-12-26 10:20:00',NULL);

