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

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$NohwsBWDqsyGEzjxRQJIh14xEdpdY0XhM5I/3lp/OsrM1Y4C85HTf','user','ak_2011c59aee03d222','2023-08-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$ekBHeLZLE/IwV3YlOh0B0qBV5RAkeb.6W/5y3eY48Fd9ar2KJD7UY','user','ak_e2cef2526841800b','2023-05-12 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$C/JAV3pzyy6V3yP8x0mzjghPkgIEjo3d7UQz/yK6ShxRE1EIxENZn','user','ak_7c96e7929c5a99c3','2023-07-14 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$rkipn39mSBaOT6ukEDeij5NY.ApyXpnZ8/csaBRvB76Zy1L1dPk7o','user','ak_853d4d671f95471c','2023-12-06 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$p9TdJN5MfZt14204l9YVgRyi5HR8fcAqUqMG6LV.tNVLaR8nf7xN2','admin','ak_b4b3d03c54ac427e','2023-07-22 10:16:00',NULL);

