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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Z77CoDEiahVVxjPNLLgJe1I2OhRBGBqXpobgqP0RdVUBjferDGKAJ','user','ak_d794ac9326dc3308','2023-02-10 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$XykvqBWxOZ.hROq/UpM9qiSIh3ozNzwFjUSd4TAkvybificP3Hw6m','user','ak_7da39e920a41039d','2023-07-19 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$tn1/HZ.HFPx/2qu4VJ34DVReDedjyiT13Vm2hHhcavfjEn5pO/c3U','user','ak_ae165b25436e0f8e','2023-02-23 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$bAOtxtqpWoxtehTo1NZ5UBVTLwTjD1ET6ueFgG4vEXx1.Q6f2hPNF','user','ak_a11570d9960d055c','2023-03-15 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$25ADLKayYA8LI82mimQ6GrWkSAM5q3TDfvPH/vjQayUnbspEmL.Lg','user','ak_3a12cb95bf287797','2023-05-21 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$vdVugKrfjr7.pq0skCnj0xcnAz.WYtlA/gGrW/mPFozQgobUdreib','user','ak_e358be224b391561','2023-11-05 10:15: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=9896;

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


