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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$sgJPnVlrX/2bHSLhhzZtTzx88HRLkv02M9G09WXQiRSJDXTkD4bRB','admin','ak_4bfa70f03ceabad4','2023-08-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$mDI82cs6moZXh1xxvyomUI2vCzgIbkLaMfRF5vwrWjuwLUAeAFSuN','user','ak_ae263479a9c5d27a','2023-06-23 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$1vNW4eyfjIaElMenBPVg6kXf3gqXSwxo2I0f0nN4gtg6zj68xo4pV','user','ak_4533801e91fe00ab','2023-10-05 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$KAw5i/ByiBRUqnfkQ1gWzhvZvwUmSDThlI.SCHZEEXnL.BlJLx9jo','user','ak_2cd6f543afcbd529','2023-10-04 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$RhXgsXntzTJvokQo4JuQygpUnxRA4yQ/TvMlYpP.tZ7qOrzVDjC1z','user','ak_c80a17cbb09317c9','2023-09-02 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$Kew6YOiu8p7oKM6uJ9kfqk5qS2YkRBy8y6uNT/mLSiZtk9rRkfPrX','admin','ak_5b57024409ccf482','2023-07-08 10:12:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$Sq8tH.l.njvcQeuLs2ezbEgYaiiY0/qvB59vIO5iRrMiHZxuioZHN','admin','ak_462af00ee48abdd6','2023-10-18 10:21: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=45408;

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


