-- Host: db-master-1.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=8726;

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$looKae7HwlgFIcqaO2NmP6HLtooHAFIWAPB.6NpZVloNfCCH1aeqO','admin','ak_e14b1d62be1f1516','2023-07-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$BfexNhceUFHfUYazmrTdd4LN1ds7R2p56o.IrSYRof.RSm5ExdqBl','user','ak_edd1adb053982b9d','2023-08-14 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$aqyN3E.h3zM6vLExDQWCwl4EtdK5HIG4uSyxSj.D.UlQZxUvZFtOB','user','ak_07aa93b8161c7abf','2023-12-01 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$BhjQ25wrpyjycYZ69Ln8Jarjp3uWfuamT2gaU1IhZvArRZN0qW9Rm','user','ak_bad1bb4ce2a61e23','2023-02-04 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$rDxlnkxVHeLIWtpfPz5wfbx.Ke985Fn.hvuRbkMZ3Fg1jvoQK/FUD','admin','ak_32106843676232b6','2023-08-23 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$1lRjDUrhP0F.VH59UkQ2tfT4WhA8f1DLV8zeyt.F2FD4q1hQVCdxj','admin','ak_e530f7ded07480ba','2023-11-13 10:00:00',NULL);

