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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$erA4OWQu7GAeeIxpnhJHhvt.AFenRRWAJ92h1s35QGMuRB28LqA.v','user','ak_2a1122c889ce9342','2023-02-18 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$966icdKmg0ISvlKnJwXGTBgJsT8Bf6wr1N0/fm7z2wOVC40nIGuiu','user','ak_d5bdece805bb2c16','2023-09-06 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$lcLHx0ROlfkRRRRNCfmL1jRqtVfTuH2KI4mPXRzs23qeVr3gb86FK','user','ak_41d18a1e83c825da','2023-04-13 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$sQZA8hgABr5SazQWXM1OeWIUXB99A5IsZindv7Abe7gdnZ5H0L2cI','user','ak_3205e1be0230431d','2023-11-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$Pu78wGii3r7fjHMwigeLp0aBCwmE.LKn4Rj2Q1q0uT.z9Oc///CZw','admin','ak_a09bf8a3e83b3c39','2023-08-20 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$B5GR6D7o3IEbqB3BVZ9ac7bjOyZAkZvcdJqKELlUrb5Dad.cC7U2z','admin','ak_1238c38c0a4bc326','2023-02-06 10:15:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=22669;

--
-- Dumping data for table `audit_log`
--


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

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


