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


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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$jtmBKrs2Wmn/nxGyPGYKN0G6r.0GnqjjTMVYR5v1ja6ZC4c2O43sz','user','ak_73842980af64a6fa','2023-05-22 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$3A50CUkTWG7dlTqCZqaSH51HHVAP0X1kHaFqz87AatM.X4ZcW8rM5','user','ak_46d1dd8a3838bc80','2023-07-12 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$2lFKEH2nDaWmTHrhPxDPHnGslemwEKFwioZ1bQf7l0VPtOsItMa5p','user','ak_3a03e6eedc1a566b','2023-06-01 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$sOTVXSFeX98M7V/88zsRkUDiwi/62v1KHpZq4Z7XC8NHOqxdu8tTM','user','ak_0007d1d15996b8dc','2023-08-28 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$oI23dfnxFCiv3b0Gf206AWRL9RRI8biCZ8n8BvwVJmnQBmJu6cxLH','user','ak_be4592133001b61b','2023-12-28 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$6QyWe/CipLk3GcfvpFi/yma2BAyCEFmxShdl6UyZcpa9i0WqvmtgD','user','ak_2bc195d5bed9a8f6','2023-09-05 10:20:00',NULL);

