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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$Q9W5.fUxHcTJ0ENsSjbRhcQo2xDALZoQpkSb5hKgoWYPA/H5m/Xm.','user','ak_85a36be8487c483e','2023-03-24 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$eqE2nKJmuaJZdw/1LEeUV1MVrt6uvTXCiDdOVMj.KIyQZ7HMoFPjG','user','ak_88237db9cfa7328d','2023-09-06 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$wonJ22xvbUDn2Atl2oa7GdFZzOL30AcBWwtqkLEv4Og6Yhma8BdW7','user','ak_bcc640123c7715cf','2023-12-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$I2p1Bke5EhRM5EveUHwdEo/ocfgSRzH7FhWZlOQu2gk2.J8zfBbam','user','ak_62a28f7dbb30de2c','2023-01-24 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$igcEtxcb5ZTDlJlYeCAiMff9YfVHbno0xqiNb/Ytr44DTx1QfT4SY','user','ak_403a0bafd3277aba','2023-02-22 10:02:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=20054;

--
-- Dumping data for table `products`
--


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

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


