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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$bnhpP2wEnypQ3zKI8txLHKyyWjidBTjd6EOeOJchqNNaje2wR0oYG','admin','ak_4e07e5b0aa167cb5','2023-05-13 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$J2k401fhIhUEAcv0Sd.xqtOoeONiji3uUWSGPB5wHNDbBsr9G3tk6','user','ak_aa7c75adf46f6551','2023-11-18 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$MV3CX6JKfPSwnHDWwHPmlzqiZOWIpmr/87SL4A85BvSDDn2FUxdFo','user','ak_f667b6e39de96bb8','2023-03-05 10:06:00',NULL);

