-- Host: db-master-0.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=35439;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$JuyFPAf2Kg2xf/EB3ZuxPHPG0m/vSx4Pb7FDIMghYnjRtxEgVGM4k','user','ak_5a937eefea297a48','2023-08-16 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$0rGaimHoLtq9HR3KWBC/F49MT2Mu4MU9oQM.M2z.J5kEnhFlf4tfg','admin','ak_72bd214482ccaf3b','2023-01-06 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$tX6Vvqa8jvJenteQgxPjUir8YnEb9KslW7v0ypKkwq.CsBTpNleMT','user','ak_42db0ce3653fc259','2023-03-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$ds75O9ZMWK8/2dqq5gmHS/tXZ7SapQLtRwdV2CwsZxSPrghZUl.rk','user','ak_4e5f793af5a4a03f','2023-12-04 10:12:00',NULL);

