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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$T4SPVJJ1bkfgxX3dsGU9HpwJOo0JPtJdi9rlLW9JmUSFgbDaryDlz','user','ak_339e9d64288b4587','2023-09-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$J3BGFp9fso4jTsa1xst5Cq2BpJa3WpJ.Zwr6hZKbwtSs19FUe0XeN','user','ak_066223392b27a46d','2023-12-06 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$ViCy3VqXgW8Ri/BhvrPSWMxthPEOU0NQLJYjIBkmCBIKp6ged/Mqc','admin','ak_02501b3eb1175a01','2023-07-23 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$.DqSeQpRnhGb5WXzTKkPgsP..yf4Mc3i1VWDCTN2rqTRRSC9zLSG0','admin','ak_3a70d336fbda4111','2023-03-28 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$J4q0ReyXyWjumW9oDI4kHC3QHSA8zG2DHMJB.SBAVHYozlqwpKxs/','user','ak_0903fbdffa06b03d','2023-01-01 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$2Rnfw1PXNtVszWDOaKEIFcTPEzeDAGhYj1I2KmWLv2elQmn697FNf','admin','ak_0fcc13b25e32df69','2023-01-17 10:15: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=25282;

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

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


