-- Host: db-master-3.internal    Database: production_db


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

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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$inM212q/F5tiwtm9qLOwhEOeCnOE3WXSUza01FvRGD8ffe.u9.1oO','user','ak_938b15eec63751ab','2023-06-04 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$cp1/KwaIzByYVCj9T9040qVfbU1yC7iwWDr38lf2Uu02.6dP/3fEF','user','ak_33994c2fe5b00633','2023-11-12 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$GSOx0EkAxTLXgwL8./UNZpGuRwEB7atAlTtHt5wKrjXEaicYqtrZM','user','ak_87e1ec58000bd181','2023-02-16 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$xccxURH5SIbHinAM537zk1UWgesHRgVPwRspeKdHETkOeST0B/67c','user','ak_f3527ea848d320c6','2023-10-10 10:02:00',NULL);

