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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$qlhT3Xaf82b/QFWiSre7fFtgHbuUNUXDbGH.jk7cy5B55FpHDOygM','user','ak_75af76ef24584e97','2023-11-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$X6z2m00MccmzYZjg7ooh9MJyyQcnCmRjKPGYLOVKKe64.w7Kqgnyw','user','ak_d98bb6cc7a79adbe','2023-07-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$LhQXqj6tvmna4I45IDmUPiIHpE/6AZ8.bebBwe29yWZ/eKWq7c6St','admin','ak_ad45f9783a306851','2023-06-02 10:02: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=27958;

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


