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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$d9KbubWVlnTmm.omb72ACVZ5.uyFX/bWAaH3tiE1NhfMuMtfKCetO','admin','ak_b0a74e48e2c072ed','2023-02-01 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$Nr1NGZMyV3i.CuAllKtYKKlq1zWZjPRG0rN0g2ZIeMxBmS6laiydK','user','ak_cd936266e1e2761c','2023-06-05 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$3EMbz9ol4.ZZ7Zlvd8bNQhzZDbj/Yz/15JB3HIiLOpb2dP2MldvDV','admin','ak_3c65101156a501eb','2023-08-09 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$UGp61xI1icX2OxrwM5A99V5U42dFX/TVLE2zCG52rdvQ8yyHXXOOm','user','ak_45697ed1ebbd4b43','2023-02-11 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$U5cn51NQw1bc3X99ae9JP8.Ww7lgtQiPseEtUD0uRW8gcZXtL1o/H','admin','ak_9b877743b39a4cc9','2023-05-13 10:13: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=47525;

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


