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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$2PCCMTu06qquQFdwcVYNclchV6nFjlMd//DGr2V9g1Ej/Ju8f5OmT','user','ak_8c93b81274ce94cc','2023-02-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$RnJdH50nV4/hIiJzP.8ICmM0jX3x0q.q9ya0lsOkuCf9sWi7cBF0o','user','ak_a24e12690824b08b','2023-12-25 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$EIpToVRY3GJxwgM3KjDSuDbNiD6iMlPHobvducHJglQg9JUa1KhbP','admin','ak_bf96afc65f6e4ec9','2023-05-01 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$L2lsRjO9t4YV7ESDYShxxsU.7kjJshyekDRbT/fnj/C9k1RA.4vZA','user','ak_e3d9723b7aacc867','2023-11-06 10:18:00',NULL);

