-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$yNE4A817vCNbf/I2tUGUHwkuutcRop7AjDh0AMLYZdP8qk4Jfc9Ly','user','ak_faa5dcb464cda795','2023-09-04 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$EJrBOCWMqeJRKwb0LWAm91pxamj7jb7b4N.U1gP9O8NR5RCbS1/jF','admin','ak_faef940aef04fdbf','2023-12-27 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$BD2ldWGJL1tY1ZSi2ishZqwpyqFmoUWxWrUpudO0FA4FNhzZcpOTw','user','ak_f5fe6086453335c3','2023-02-25 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$w060/wE9YuKmdOL7IOKN7/VsXgVfBhhHUoCifmlH9TJIpg7XF4ppr','user','ak_4b79abf021cdc6f2','2023-01-11 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$0ZZ7dkN5uxYli.cgC./hJCA1MNadnG01z3oYeqW7Wnsddeb/UTVeR','user','ak_375369613cdabda0','2023-03-09 10:08: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=48783;

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

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


