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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$J1KIiLHOeL86jYEReJe0/SJadcDLeUOYCzXIVWOPQ7JaadbK2jqP9','user','ak_7223441fbcce260e','2023-03-02 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$pxUGBBBZ6/m2GCa6RpXCi.f/lcKkXUjM33hdc9IdnoTUsLDfYQo8Y','user','ak_cb540ae55e490017','2023-11-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$jDpjov4oBwHBCxxtF/D8V9ru.83tNagDU/JIq5WfQyjuzFwIQpg0c','user','ak_2b64c088c763d3db','2023-04-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$r8qYapXSzHZ0EI410LQE6qoxmnLKeBbi5NyRXDxK6.7nFbo2oI41d','user','ak_ed4b3121f4d5ff81','2023-11-08 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$Isen8yi.d6b0Bb.m7kI.ufIPX7l9sIJ42p7WcPKGzLjxEiMUuddwS','admin','ak_1199ce54daf5330e','2023-08-03 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$3V52LUdGGIdkIbGLfsJZMRRmKV7eJoaxnozzl8RYmMJYUVLcX5AFx','admin','ak_f4b3a721cad7c95f','2023-02-12 10:20:00',NULL);

