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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$gxNQ6OfMCJwxQj5TUfOQaY8rrRLEuOhtt5nenT9ATGAYkM5UFMHal','admin','ak_a286062d32a4aa80','2023-09-02 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$zUjaoytLRk5CqpR5i9pRfmyu0xH8uJZMFVYcEdPGx2l6lSDz72Oga','user','ak_3b6bf458d4fe10a9','2023-03-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$mcT7e9/wLg9hIKvBiyjNmNa6vEiMuBu5CzueNbYS.eygJ2W2lExW1','user','ak_166afdb0d8610cd9','2023-07-13 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$1oCOsVMzP1FxebROgobINaexULUsVaz6ufVE50VdHvQOMsWmcaluG','admin','ak_1558ce47e14ecf9c','2023-12-18 10:17:00',NULL);

