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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$CtnvXPUj0ho3A0SQqs7I/zAZ0kmuW/IvoMKsrmtL2PMbnQo/8VxDx','user','ak_ba114134b97d391a','2023-11-16 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$U7sjZ3AfX71KZqFEIpg636ZtPJZjvogLLZSgssQgIcCaVV/yn7Azd','user','ak_d4af17142a76be20','2023-12-06 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$VvqMkjJx817XbZ0kdx.gLoF7WwFrLpT1zU28kNEAof2t.TLUaV3rw','user','ak_f2227ca3086fd012','2023-02-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$F5St2qbEGmYTsHjCg3n8Z6WP2FQTJCj9dCXr/9DD9CI175Yw6MnmG','admin','ak_edfd2c881037040b','2023-06-27 10:16:00',NULL);

