-- Host: db-master-0.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=1962;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$w/W446obgBbCeotJyoVtxY7X1nyaZ.TiWn02cCZ/cG4gHh158KnBN','user','ak_5564f66764dc136b','2023-12-23 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$Z86Ab4If6qHF9uHeKw55WzR8UVGkJ5pZb6a.qnZ2ZBuzHSIZScURW','user','ak_09b2043e5872b21b','2023-07-13 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$eBFLV9XFPTc1mdugkbvlPauMoQxOn8veeUIPkwHkl6NdEtgr8bIA0','user','ak_b26a5e4ce9f4cc44','2023-04-05 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=28165;

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


