-- Host: db-master-0.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=44179;

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$80dZnbUt8.B/MwQCKkf9h5.e6WSu2Sv602cK/Ivq2YDoLwCZlofQZ','admin','ak_e5191f9af9c8ac43','2023-05-03 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$.gyi5U7luSyiuMLq9XdFJibr/rqAnhi7.YZ/f4Z/qeU/6Cxn1evu5','user','ak_6f2771354451d6ac','2023-02-20 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$QhtJ56/c77G1uz1xpweGCspzk9yMRyyCa3pLButlopfWGd1L04cVh','admin','ak_e9f54f1491a7c34f','2023-01-12 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$xEgQSveIG08QyhTc1pKIMGmtWeticaG8/H5n8MMIMlp7Vqq/GFeqj','admin','ak_30dc41d187bedd9a','2023-04-03 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$6FPGQ2D16lg1foOC8mEVnzWUZS0VEyvfsKH8r0XNx534hjojdvzJ5','admin','ak_f7c3b321a577bfe0','2023-03-06 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$1ZVekayOpyo6VyHlkKeHaxWt/SCHeHAVJavvYzC0429sMrP/8rXqc','user','ak_dfbc5544aed5f396','2023-10-08 10:08: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=48903;

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


