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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$H78NHUcaVylH/fZssetcDVFDVpeKN0CsrRPE9LLi7DSFNaU8nn1gR','user','ak_44cfe1f03a7da60e','2023-03-25 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$ng9iPEJwE3AODVK0BmmzYnqmcrYFH1i9xeKPkytNO4zOlKo90w9rf','admin','ak_1e8eaf7d83423015','2023-04-08 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$Uw3F/dzyR6cli0DbyDBmCxnbwf.s0lgJNJh9mla.2v.np1QfzlfG8','user','ak_6f13a00a27901e72','2023-06-16 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$4VAhwde61Kij1myjyxFcZFbsJWFJy8J8BSwEJXuARkk1UaFWeI/hw','admin','ak_28f3954e97e6028b','2023-07-15 10:10:00',NULL);

