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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$9L.kMHizUhJDHqfsrqKju31yB3IWJ.Ze8KFUA6qx22vt6CtbFAq2g','user','ak_104faa5d983761f8','2023-07-13 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$5OaxDlllasv03VePMixSCIzIEg2pYCfZZRVJP.u/XbQxYZpWt1Jyc','user','ak_95e19906494997f4','2023-12-01 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$V4UL3vvYEgLiqqRFV0vd72MdYCE4ypjZX5KB2xtv408klOqbEwpIi','admin','ak_49ae4bda708ebdaa','2023-06-14 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$13vmJOxWD/f3RJvk1XKdPMwU5XKcQ0siK4XV4JUavj5KoXp/fwpBe','admin','ak_893a54eac96352f9','2023-03-01 10:23: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=21198;

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


