-- Host: db-master-8.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=34052;

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$SVML6hURvSPeGWjxZbTmtgr1LC8ipFrRxqP38x.tyLQGZYPvyLCIL','admin','ak_2e52774d584c232e','2023-12-20 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$hbSrpCBs4tljWadLsXNhcfVHlrfzYHYmatJwpQT9lECC8UHlkQ.eM','admin','ak_8f06d85e8acec167','2023-07-18 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$7KYDsxiCBJgUTfSDJA7bqL5hObSWOjU4a4prFePf64fpjz7M/7Goo','user','ak_694b281b374cb24a','2023-10-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$uuvFzv/VsmroDtKBwrf4BRLSlOxMX6nrRaR5P2LXVgnLsoDemVw5y','admin','ak_7a0d7f63e1767d00','2023-09-06 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$k7QyU71.0Yu6BHUM0DbxvxBj66uqOf6DPe9tJyXzU1rEY/scszZPv','user','ak_e0ebd0b62c1dd4da','2023-08-15 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$bNjxwbyLOFWTQxYYiV5azz6YPoh/iqAM8wMI5BXDYaHa4tltVBmne','admin','ak_6ba05ef8a096d7d3','2023-07-03 10:23:00',NULL);

