-- Host: db-master-3.internal    Database: production_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=46012;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$KDcvlS9XZBMOLT3N8u4UBmtV5hr7dZrxVHwA52GXABfO1djIbud42','user','ak_922f63e465f0f3b5','2023-08-13 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$bMcpdIUjptftkoHAS1ZkGwinMVX/PfwgBIEmLkRJkZKoY8EKzu9yR','admin','ak_c6596f091c1553a0','2023-07-20 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$y9zG/dFDFXBAN04Ht5R5NWEB/KVy/PDAnz6LoKhFrWHsLzGRkOPXV','admin','ak_99965daf781732a9','2023-06-06 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$wAH5t7jfzOqKSevSmVBmYDDEzk/PzAkFFU1GIj3zAuiYbi0DEuk4a','admin','ak_776e0328218359ef','2023-10-01 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$jLC352.sdzujOMKhsefiMr7ovfeURtORB4UTb6mELotrlGj7VTpvt','user','ak_b722ee3e3db76e33','2023-09-26 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$NUVgGj5/rO558EzF./jeuLpq6hcjZJopsWdVC2KDRXZjKRNluhnnc','admin','ak_7294f79f6e6d2345','2023-07-08 10:14: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=38269;

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

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


