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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$hqbYYWcnGmslm4AbiqnCj.O18Ons/oQlx3FLoc8PyRVGzb7XJo76A','user','ak_9f22e6e8e90848d6','2023-02-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$BVB1Eabp16Y7VFQUF5OSHgt6Iw4x6ncRcEN5fcXlDW/iik8kNOWlJ','user','ak_fce19887a7647755','2023-04-11 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$lbEhFZcquNgSL4oAJFJdOeL94oQQgCUaxvm0UzrXUY5BpNwCRBkyy','user','ak_8f303021c6d6b4c2','2023-03-23 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$C1yohaIg.EnauUH64/dQBjv7cduGNUovy422DKcVwYbVgwhif49rI','user','ak_8ced9b1cc46811c4','2023-09-19 10:07: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=11818;

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


