-- Host: db-master-7.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$o9z/SvV7tSsmIriP4T0i9RDTirWAlFmQx.QY.bkIdSG.vfhjvjelJ','user','ak_40670d8c3bfd0a8f','2023-07-18 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$CT8k7mMTjoqAmrOSlmvuIpYNx8N5AhmMSjoyHQp44zanJVsCNwxT1','user','ak_f1454ecc921e1c09','2023-03-07 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$zeHuddTj/SV2D0OKHnzsit5bE8vqgiA3zb6whQno0Z0ec1p.thw1T','user','ak_47da01a36bf44204','2023-11-10 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$r268jdmVdpOd6seN7s4XnEUECx0OfCC6cc0dt4z1IL/Cct4E/p8qV','admin','ak_93cec84b8b8fbef6','2023-11-11 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$QzZXGsx.DRHJ0CsBWaQILN8c8tswcJk1LiSDPhvLNdIotzTKJiO.o','user','ak_bf7186f159d6ee72','2023-03-15 10:18:00',NULL);

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

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

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


