-- Host: db-master-6.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=8791;

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$PeiLw9VewfoFea8W/E7ggJsQDmpuYsFNKbGEFZdC.k5yM8DLm9CsG','user','ak_197ecaef5198cd7c','2023-08-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$ub.5zPNXPjxaGFRRmsmwQnPcgXiHwLK8HSr4FOC4AHw2Xq5vgStqt','user','ak_298f095c8d5ca0e1','2023-05-15 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$vCNlzs/ifIYEr9I7LVAXNaSm.YuHym5hS7IE3baXyFkHTykX3cbP9','user','ak_048acc5b262be700','2023-07-17 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$FGUVmtjjm2LRcfcrBvwE3TobnJoQ6T4DmVeePUwSXa/Kt8JXSK/KR','admin','ak_e2ad8042b970b25e','2023-02-06 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$5QBbEZ3zZNY5mDpWlwgDaaW7VWHl7AK.RGUlE7MOKOeo6BaF8huyc','user','ak_4cec7d84ef824ee0','2023-07-03 10:11: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=50123;

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


