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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$ZO6dQiNfjx.LVqa/Syh17OByeLTxWBVDD4OEWtjv6dxtokLBsVBhb','user','ak_f7b7f622fa0d53dd','2023-08-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$fWahe5hPWGCPP9qlVAjHOGoswx3v4bN14F.vfvvNeAHMyX2xIgEdH','user','ak_a4b09e046b2c68dd','2023-02-22 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$4/NYthsfRICMPJO0oSQw8J4Z6zEamfGQ3JstJLC//.oeUxpe2Xc0Y','user','ak_cab02446ff04e3fb','2023-01-16 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$so40ImnNM0ATjLRrduXOPvWJSGot.NVRByYjVKD3wrK7C81PJsyA/','user','ak_8e8f102b971d6396','2023-11-13 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$/Tzf6QEV11ahj3jxkkOaPtNTnYKc.0Wixu8.mE4bmLxOiZHrPNhf1','user','ak_88770e3e653aad4f','2023-05-06 10:18: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=40963;

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

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


