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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$8OM.AHcfBo2NR0tQJEInq1g5spBd1ZsV7mBbM/fuWKkHd7QMJE.QR','user','ak_13ea4c993bcdbbc2','2023-09-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$YmizJHcb1SIMJ0hnUBPi1d4bGh3dAaN3JlY.YspVAn3SEBlfwyS8A','user','ak_4a11b919710b17d2','2023-06-27 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$83xPy5ttBlQITsjCwwkAogNNCUpytkgHpPDYQFzKuS9rAEVkMyYzW','admin','ak_d132f0f592d84ac3','2023-12-20 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$p8ymrKIgK9lTCmOrdoGHV9MUMNaEJp2XEZBUzcCYXcxax7mv.a/6Q','user','ak_efddbab0b4d011fa','2023-04-01 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Y3nFWHjapiEdwJpSfQQ3rNrRpy5tgxCV9naoYxLNy1mvns/Td5/wM','admin','ak_446c2c484eb26619','2023-01-11 10:18: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=4359;

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


