-- Host: db-master-3.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=20096;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$na1rUw5GhJp8559QmDJn7IyA5mqRpO6qQjxn/21zqyMpFpsi0Psxf','admin','ak_6136f8b80c448897','2023-08-22 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$cRcJfvbIJ/8QfCmU4SFquDKlx7GPh7dORF7xYhEmhzrOFG37Yt2Xu','user','ak_dc9a1c4b77da42ec','2023-01-06 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$E5W.Nqv9sZht4flYfffVu6cD4Ef.lvp4LBfEefo62w1UTuxv3v9Lt','user','ak_c9d0ab0c4c40c4ce','2023-02-28 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$gfNXfFkYhsI5K0BcqhxSSBBpK4a3ThlT.RSOKBWB4POO/EYwsz5P2','user','ak_732b5148f034dd66','2023-06-13 10:15: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=39294;

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


