-- Host: db-master-6.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$CeedVv6hOba7PlAlR5WboAHh3QY8Iz6Edba.MvpmM287Sds7mv2wa','user','ak_6f47537fddebdc24','2023-12-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$aK3FjPYw4pDhB18QDWrLwh78zMO1mxXfpt6IppyQ.LETekEr6QHz.','user','ak_b37e663aad2a5847','2023-05-14 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$aTEraMi0uCd7MKPQWM8FYndR6Uhah6d.w.9WSdSEx32M3IMHjlISV','user','ak_9fd1194583d2f640','2023-08-01 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$Qmxxw0Qwp5uPaJBz0ryo23IuX1SDfW5LcwbAMgxhq./jxSJojUPdv','admin','ak_1f120e17c5924345','2023-06-03 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$gsQv/X/t8rXZwHKyiPka06UWMye8g/8ZSIEBU0mxmlcYvMzJHJ6Nf','user','ak_2fe7c0b2c6a3d67e','2023-07-27 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$hckbOSIfjjObSYrBraj5wx1odMclD085W6cWL5.OC4sg5SJe8Q9i0','user','ak_af3af35e8cb9a2d0','2023-01-09 10:01:00',NULL);

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

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

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


