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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$zstaCrblC8v2qjYAEnhZJq9mhX9Ch9wZDWQpMF4i7oe5XHHBBTTaO','user','ak_6b6a4510421917fe','2023-03-02 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$B5VjfeYNZdtSlzFPstEs8lps0n9F.3Z83XsIRE0NRPGypp/3lFSQH','user','ak_d455668bbb150c04','2023-12-07 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$VtX619vcXohvLTUpkCn5ney5zbDO89wr4FnGG7/BQ.u.0Nau47m12','user','ak_2278a28151d3a5db','2023-09-15 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$IZ87g3UHyQBFbI7HCVdSfSbs1Qptw.rfwBSvOJK4fO4BJUsWkz1E9','admin','ak_20e88b837819c9a8','2023-01-03 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$btUSFR/cQmbO4klKaj4yisCOnZiAGhkOwGOzXjxYADXaK0NGxIPA2','admin','ak_57849d66a942a0c2','2023-05-16 10:06: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=40777;

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


