-- Host: db-master-6.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=25941;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$DDX3a4ihP7QUXYONNxMiFn93gCue0piTByWowix.7eezz0mcnN0Xo','admin','ak_20e558e848668b01','2023-10-07 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$uvVK50qAqh8DP70o6gRPdReasg9PRusi7dAISEUGEPi.5Jpiy9D7G','user','ak_038260685d3a7283','2023-03-21 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$7zswiThSn3D0ri3zzHIV1mqGltPdzKxD.bEnqoe2HFZWxpS95dhsH','admin','ak_2cb6f922e15b6dfa','2023-01-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$IsvDb1b.EwMdSjIpZ6a5h7H7uhXJHb0H2kuiTRPYhIK3ZqG5PpOe9','admin','ak_7f4954599e19c79e','2023-11-17 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$64xaiESjI6Z0tdtjpgl4KVuTQkwCfxoZSkHbaj1Q3V3TXeTYPVciV','user','ak_e468636d5b699276','2023-07-02 10:03: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=17008;

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


