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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$yyJjcaQsOYA0f0vs7cN3vJJKsjxIXDfxlR2ER/n8toyVts7diYivH','user','ak_6539d962aa3d2439','2023-08-15 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$Joa2BHT9N9T1XpyXkdXoGI50jk1clixwtMAAKlBp/WBydbioju5dn','admin','ak_8d90d6f1fd5e6f4e','2023-04-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$BmfD3L4zsIIMpVlqT7QUBED2zngMvhdeJ7wJufDbHV7nSN.p3VI5Q','user','ak_bb8be45eec38612d','2023-02-20 10:11: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=15407;

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


