-- Host: db-master-8.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=4836;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$NYNv0axfr/y3Fc6mfAtuyIekVIt8ri2AK/IytrwSlVztS4zdKlhyv','user','ak_e47178599dbc4dac','2023-10-13 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$5uJ71k7W.UTuxV2b4pQGs5I54W9aFALiR33hfsbIR9YRwiNIatpzl','user','ak_564c4b7a93759689','2023-12-01 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$DicointaIuTt1fshWv57YAFv3wFva4Du5BBKl/IYPwGW4fBPAnTY6','user','ak_443c6c9e4063718b','2023-03-07 10:14: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=47406;

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


