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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$lX2P2TUe.b7NIWq9qpD/p1pZXE8DLKELIEpiU7mv9V746zhE4dArS','user','ak_417ba9900fe637ad','2023-11-05 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Wdk6T7zZbjW8/rRecNNxgMd2xSYl6SZoscTWicaFJadSdemngiQfI','user','ak_b8b9e5ceac3c88cd','2023-02-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$p4gFGJH539UHBQvqLJf8LqhlIrmsj/DGE2FC0Qh53KLW6843tBBmF','user','ak_c814585907242c57','2023-02-10 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$A44kYGVMHJ5.er99Yn5jzJBJxLSWkJKyN76XQsweeaoav0pOWZGXm','user','ak_75a1131716ac0f96','2023-12-03 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$twhyUJRKlzIt6vwqiSSfDeHT80ZCzy.t9QF7plr.eJl./Ag5JNaQd','user','ak_f1e0aa946325dcd9','2023-02-05 10:12: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=44259;

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


