-- Host: db-master-5.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$.jUUN5oY15QrhdAcK98IxwqX5lZksiGjBEWdIm/t2pwCDyi/Edrth','user','ak_e5750328c2801369','2023-05-20 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$ecN.jgdDeV6SK1oy7i/OzekWh/EhjNt3M0JKiqRzcWtvaEkpa6PMW','user','ak_1cdf2f9ebe2563cb','2023-04-05 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$cYCiCbyrTG1ZiZxPYexCTw7JRMLALmMqusOm55TNMP4mBbrhIfCp7','user','ak_5137d562004be6a0','2023-08-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$7rGS6jparQT/Le33O9Ad0epl9f4LYNAd1mEFLRG44gORHiHUvOXBX','user','ak_cbd70fa25206455d','2023-08-13 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$lwiE/gPdltgWb5QnKqA1ZoIiheZ38UstJy8yRmNwsD.oxliOSH.mJ','user','ak_4de379cbe8c20864','2023-02-10 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$ZBPV/UOF5etzhRqsvAgRrmi0GZ02i9sk5Fq1ejAVBfTFbkHsgydhY','user','ak_5c84ef8b8d50d867','2023-06-13 10:14: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=45769;

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

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


