-- Host: db-master-5.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=47519;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$I3kNaCTxdG8NRvwB.6qjwOBO5n6SW0fTvp8cBuC5HVrYIrraugmk2','user','ak_ae8fb82c37dedc16','2023-06-20 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$s1soCx0llDwZcybW8wYSlkCgOzP9m0rqhUqlRhSOLpNrrpG4R/5Vy','admin','ak_4ff6bb02c84b35fa','2023-08-20 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$GrW.W02iWzGDZ2LWLNYH1rZ/TysphPjPVfXDpDl5qYeiQ8kzb8fjC','user','ak_4b4aa2437d063dc6','2023-03-19 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$TMh4IU/PY4J01Kb5EjALP3FfSniFdHsbhVYNe4Pg0nx2f8222t1HH','admin','ak_39da38408d84d9a7','2023-02-08 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$VSLImHMeu4fHaV75U98raKr7MFpTDVwq7J8FEVyCG94Vnz9EfC1dH','admin','ak_94dad775f4630b8f','2023-07-05 10:16: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=25135;

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


