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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$v5F0/vCDkmJBiNncPFGFKtN9.70oZTDxa23wsJoqV7egESRuZAIXL','user','ak_76de2e103ce5115d','2023-03-01 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$pM//PmzCsqCxwlDmnFTvYZyFlqGSRKYCH6khUuObzxiLd91BjZ9vt','user','ak_c2a17e88f4051674','2023-08-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$Qy2QfGMA8ZJ6us9KXMXWokmH8o44WBzBZV.yS4szou2wHLSx/Q3kL','admin','ak_87a5ca3a998c02b8','2023-06-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$ZCJgMt.fVs8l7eg/Ctny4jyH1Af9GiAP8WhbtdoC.3lL6r0AJmESy','user','ak_c001638c59855da1','2023-09-10 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$IrHEYgB1byowjLe5mVPThTWwURXAea6t.4hVkgOlMdmcLsHhGnaXv','user','ak_da7faa5fd905c994','2023-11-27 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$uvSbfoUWB2oGNiqMRKPLbioD.gKq8P/2KRwZa7Xswn3ur/x1YhdS9','user','ak_5bfe12d656b9d7dd','2023-02-10 10:02: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=6575;

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


