-- Host: db-master-1.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$t7TGne3tWz0zP274yRytahvn6Z6ae3u8MY7TWHbSpK6JDIpL7d0mw','admin','ak_2ca1e60f76462813','2023-11-03 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$X.SzZFPzO3iaH9d/sBur7LcU6dg.BCiB.6RDf/cOMpNdqbIkiB7NP','admin','ak_d2c0eb6f30c32c1c','2023-11-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Xwqlo6EuW8mWM92KdDwU5FKOQ13P.YEVcOYNjewjLBWlyRPeRx0bI','user','ak_3fef91d13785304d','2023-05-06 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$2t2y.eJKOx7bVSOSd3wx9rKKKzUjnP7m3g0DCswIf87jJVMtNpBoN','admin','ak_6061b12887570741','2023-01-15 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$JPIWa0eq9hJXNYkp2bMhQqo5iyXqOn9OytT2kvWYixUGvYDNS399M','user','ak_066e97614d640a1c','2023-07-01 10:12: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=6654;

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


