-- Host: db-master-7.internal    Database: webapp_db


--
-- 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=37223;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$HaL/brlIY.RxqWPCI02P7KKxdXQje9ytEtixARxzIhdN2pHr6Or1j','admin','ak_7c48e69c30a08039','2023-02-13 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$KxSfM7jnWVgYsDZg4uK2RySgylr8chhPV2HQ/CDUrKJ22uBpNGx9t','admin','ak_de4cadb64921aa9e','2023-07-27 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$.FZkz0e5nsVCb2gJxZH6JPamI9u5xP8KLs9rsr1jUv.XoE1GZCrWJ','user','ak_c509d2e458d74d35','2023-08-20 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$66SKIiOBbZ14vcUsZIrdwp/MxIVsgwmEF.v7CW9Gjrosraf.BGM2D','user','ak_686c8dc96ffb890b','2023-07-19 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$75Cugq0mtu68zYCU2dVZUnDqj1nre8Lvy73Yd9gktHg1IQAWAi2wf','admin','ak_de718f603a25fd81','2023-10-03 10:21: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=3953;

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


