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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$mh9.qvJ/yhv7LTfC4skLRzeR4ePeSOQ/qLg.qE0P2MI8SOCt7CWxH','user','ak_143a5ce1ad1552fa','2023-12-12 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$.3wGyrzab1VHONTLm2QJ7YR.yTE3CPx1BFgF1V6EJ1uSm/MYTo.U6','user','ak_8d98b22b5a44e1fb','2023-02-23 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$An2653f184ZukhLutk13KT7KJpCrWRB3SFzQZ/Q2nSJyHtvaxZ9JQ','user','ak_b00cdbaab80a8b62','2023-01-10 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$3N5XzPM/6DWG1SM3UPYt8N4eYHVxyVleDM/hLcf22zi6FsBiRUQOS','admin','ak_b0263e5f70c73cd6','2023-09-12 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$uczpZDBDkQRSSM5rAPtV9Y1WduDEmUNCms5FstnPT0kW/sDNWtKox','admin','ak_c5ec44a4d7de2155','2023-05-19 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$9/y8k8qBhJ.t.SbCaqAOI7k/YU2jBSk.L.kcKmcSeAzeCHEApmtwC','user','ak_7ed6120a3fe571ac','2023-04-24 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$7U6D8428pW/tyDHuK2bxR3pSca/HBaHyrhwggJb9XmksjTffD32.m','admin','ak_b04bf4d7d7affd68','2023-03-05 10:20: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=35096;

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

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


