-- Host: db-master-5.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=10257;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$1NMk6PuntCqFk2lwdgOp0Te2oT9zQf4nU7DLwO6HqN.mwhVN51sa7','admin','ak_30ba344c3401554c','2023-08-11 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$t685klQz4IrEDGFODawens5xUVMBS8EAB7Fqu1tHWz7mwv7GrnfeS','user','ak_fde499875f7b7267','2023-07-17 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$cqtWGuieUwYB/VmJ5sJYsmCCpQB/VyAFsP.SZ47GyYGgW2F8wfhZr','admin','ak_c72a5d756f0499b6','2023-06-05 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$bql0BXmB9YgtWfJKGX15Gz6IkLJkip5HEDfu0KYBBcHJE8Siis6UH','admin','ak_ff52bbb4f4046f32','2023-10-04 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=36002;

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

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


