-- Host: db-master-9.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=27098;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$5JkhfVAHCY7R3oU/N6ce3/9Ezv4qBvcaBvPuczvbSukkivK3TESPN','user','ak_197020aaef202fc9','2023-08-15 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$KJl073FLJMTwAXm8XfNheW.NCfOLYTCB/I3EMaJGKvVlxouzkQieB','admin','ak_ee2695995f235d3c','2023-12-25 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$AfmZJikz5bFzXs2NSB6ml9ICy3pyJgnJfeFjlEEbh2XPhCXOip4MU','user','ak_69c2bbd015c0091f','2023-12-12 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$cPlMGOVWoWC6y43eGLUkqa2zMA9wpVk198p3HUnyAcwi1Ogj.D6bo','user','ak_4791e3578d0fabb5','2023-01-23 10:20: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=14068;

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


