-- Host: db-master-4.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=15343;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$HmADYFbcNsuLy6vFxglZVLrqyPD02nedL8NEwmQXLwRWbYqlyDlan','user','ak_d892a3db0734dbf7','2023-12-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$p1aL5kdMkZvQjXkFSC5qKIi8nxIKu3.Mx0zv.ORp0kNweoVRTMmlX','admin','ak_c020967f12fe5f32','2023-06-26 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$6aTwlzmfpUwhYAYt3xouu/uGrGZc1I913/J1oG.LondvrBzhfOOyk','admin','ak_599b35139191603d','2023-07-12 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$XxIYR6x8BKWBitbwE.Jz4HgmtlVi6Rzvx/zut8ktNCSop8SNCMLlS','user','ak_e038b5963b3f2c7a','2023-09-28 10:13: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=48326;

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


