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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$oApbNj5vOmRFXcZGVohIZ9Cg16Q535.qnQPA.AUyFsGfdJLBQ2Xvj','user','ak_57ae78bf71b63215','2023-02-12 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$rmK3RPd9DkIi2EVrJuvZODT4uupjx4qT3FuLVI2voMMppdpxCp5VK','admin','ak_c1743e199cd0d4f7','2023-10-08 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$yePxDZfcA1Qc5Fg6enCEGBFYoyvKL8LXsCBPYwsHInXlA1o4yJrLg','user','ak_087393d24bd75222','2023-02-09 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$MyOk.jqMeZ40caBYmhVtTzsvZJv9dBBPgNuIfpm9GvDvPJMqPfWWE','user','ak_d9a81e66b942076e','2023-12-14 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$Yt3/3Fm30zwtVIa/Jm72iUjqH0FAcOfBDA9dsT5yJJPOGOa1O5I5d','admin','ak_ee8e666351908a2d','2023-02-06 10:21: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=20021;

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


