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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$QsMrJUehtaG0W83epxxduD1rzCPxymRQKbvzJ4tfZSu1rWVP6TYVJ','admin','ak_c281483c8d88c685','2023-10-08 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$1pRK/EhzsFiAR6sWOLcCE9nINNbyIWf28qkQ4pnEB2pZVaETrawZh','user','ak_ba49cd9b28ab1dbe','2023-03-18 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$bkjt7Iy2Jw.ctSmjTjjsGZsOoVf2xI.BqacGh4jsHWv52mygUznPL','admin','ak_26d110b851fadb79','2023-12-06 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$ehtwG.mvI4UlpNep6EC4cWa1m8OJbNqYi3Sdwaq.o5Vov4f89Vgce','user','ak_052915a4991bc624','2023-02-14 10:19: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=49801;

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


