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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$B.RbJIppQjWeoPEo9qOT9r.dhB6n/UFqFI70xLlFknA5idw4nURC7','user','ak_6b96faa62df49332','2023-07-07 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$TTkeG8Ui/0nz9AyknxXSU15q8bwchHExD5ej4rgzHZdewej3YGsFc','user','ak_f01c19ae059defe4','2023-04-03 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$b1x9.oAKmh7RqLi6Upi7lU3GcYEJ2oiKcKZUoHeCQnA85aSA9Dty5','admin','ak_e0d533a6f9108ae4','2023-05-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$SC2X5mwX57WOPN.zIMl7yW6XbKujOLt58GzEcL5pjAdvBssl7Il99','user','ak_7f63e043657dbc3c','2023-07-14 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$Idj1vccLaeXHsDMYSeN1F36TnKaPRl7Q2XQqXznUfHyV0PiemZYlR','admin','ak_f13f3ff48b53bf25','2023-09-27 10:12:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=39755;

--
-- Dumping data for table `sessions`
--


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

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


