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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=17967;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$AC7hrAgGxALFIwHDBqaGyfUkZ7DlCQkZN1XYeIMBEGxMjevLv2Hvb','user','ak_37d4426d7ad028c1','2023-02-11 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$d9Um8MsYlESoMQEtwzPu3yOhc68PkG99SzkJdiu0Inop0WdFrzKsr','user','ak_2b280a5a98fa3077','2023-04-14 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$k54UWWHvr8OEUATN6/vkCUKf/5tk9/5MuhIWbLsUqNRE8iQ7aTZur','admin','ak_7b87acd27153a4d9','2023-01-20 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$XCmS6i8N4z9z8nk6JE9w7LsevoOqd6ff/9xRtVVHaOkctxhhWORqU','user','ak_3b7d1b60c2db04eb','2023-03-06 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$0i.uXA8gwrb8JKDm8hONav6VKcGl5RxxXjNRQ79fllwXp5cXnnPEN','admin','ak_78156b9e28ff719f','2023-10-24 10:11:00',NULL);

