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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$cRnEaFvhOkxo.HDsjlwhhRlHnalSGXrZg8r4AFZ4v4LVCGU2IjPWM','user','ak_920ecf3e0dd6aa74','2023-01-15 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$ZlR/IynFPYUkeEQG8cJLUrm/fm4HI7e6BYe39yJe0TUCC2.6xJFnP','user','ak_71a65d1c5a7cad7c','2023-10-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$inAcO2l.INjtcuNgemrd/vxOHRsy3d/r9.7xJwzbmM/dpiSoda9t/','admin','ak_b8859c5771651068','2023-11-13 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$0oVMl1YEGWi9vs6N0kkctK/0sebEtgjy1EIgvF0uwqYP9f.w.FtIu','user','ak_1e0700d4494685d9','2023-01-08 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$/tMXG1Na72PcWVcYOnd3u6OUheXHJvIjRLWKjvrRHWfPcs0lflY9Z','user','ak_dfe33a62407103b2','2023-07-01 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$0rsVsErocKr0kWnhmnI6ItNyqyM0nNHycK7v.Cwp2xaLxNSI/6G/E','admin','ak_d5989c4fd9356732','2023-06-02 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$v9nb9UDX9PZ28kZjuk/KU.Egx.cAzglKi4tfUzPpIW5syIg.OcTWq','admin','ak_f61338241b83ec19','2023-09-12 10:05:00',NULL);

