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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$DVNNlZ6S40X37kfLS.gqmnpcHEXP1YWFbkqWAu0I6IHHFOJPKvuwH','user','ak_112645e3ea1adcae','2023-10-09 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$ZA9D6k5mQCWHGNiQb9WJTVHURnxiLUNwdY94VZH0T8BjmtfdhfPnA','user','ak_5fb4b17491c4559d','2023-09-25 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$.WgHOCA6aPetsr37GW08dWtmHA5ha3R86O17ZuegncShJPYTFeQ/k','user','ak_e46fac03c3df7b06','2023-11-20 10:04: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=46584;

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


