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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$RATyQIf8HIbZM0jE5l1ahVuoi8XQBUwkm63c70jfa6jId6.v5viXd','user','ak_42b88f240b12c97d','2023-08-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$pqpk1sy/bL0XlfYynaFLm/VNfUSEn3QLiyVDzKlnhbhiuxork/Dk1','admin','ak_95ce2992c88a742c','2023-03-19 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$KVwibS/IugAPmelWg3UbW2HJqnZjaF6H6u32sUm3d.rdSNb2Cx4HR','admin','ak_2fc80e27229dd86f','2023-11-22 10:23: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=31705;

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


