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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=16202;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$.gJkqW95rXwgTxogmQtnj0ETE40o.s8L2n1DQb9T72IDHaBPju.ip','user','ak_9e7723c8e8eec146','2023-09-06 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$c/1YrezOR/UQ32Dev9Kxk/eGz3pzmrsj374KaTn.ZRxKQ3aGQsV2Y','admin','ak_9376c90f4ffdd48d','2023-04-25 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$QhRCi4aaDUy3wMa.OzEOCm9b263ntshjONJFX6lpDLBLhjqoOySkK','user','ak_09b2632081879e03','2023-03-27 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$LQiUFFpBkCCQcVUyMg.X.vBCvRdQMrmed56/IvIG9fmaslZ8lgCVo','user','ak_d98515cfb382af52','2023-09-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$4CJHYLdjvMALwA1AIICk8FceOT7c6o1yTrogLDJK9VsiQ9Z0e5Nip','user','ak_10ce14dce8669751','2023-08-03 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$BA.PubSepq9YL11FVgAI4m/OoiIbIOGkiYePedWDVEd35QYPuGpZE','admin','ak_6de16a489be5db62','2023-07-13 10:13:00',NULL);

