-- Host: db-master-9.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=8931;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$qX4OFMZSufY.RJrETXY3RaSbktSBsaSyPz5cies9XEFRylrYfqLDR','user','ak_517d1519a665043d','2023-07-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$DyecNVpkl6RZtJvhiGia8UiCZupUe7MyqFqRCcQuavyqpiAjFbOup','admin','ak_dd6ad255f5e19670','2023-01-13 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$a4/tqnqIFa4YPrT5geRmJKm/BxjqwTjrQRUB7PJw0k/PZ8GUaKNeG','user','ak_c42ef730c8d71965','2023-04-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$mWrg4t72bGCf.zK0HSyFrYOVuhKmBXhDVhQ5U.oZCrCC6t7X8BYBT','user','ak_6607138c89457002','2023-09-26 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$dfzMqBV7j.hpJHbAGkpu9xg569oCEk3eVRIwRr5Qk05aJEXiiRdNn','user','ak_1d988db957966667','2023-09-02 10:07:00',NULL);

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

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


