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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$XjGc04dXbqOwn9uyxbmkpMDf62WasgnNQr1nPcMo/3eiFjaRK3Nbd','user','ak_01f9b1273ad0860e','2023-11-19 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$yxqKjhipxjgnY4fviIEpaiGMfgSnrYVc3cwgQVFoN3lO1yzEiYfQ6','user','ak_8395747198217cd2','2023-03-20 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$K2gYmhZfI7sPxFM.CzjgLZTgioc0MzFUYGF0WEYpOKjUSbvzfzlAA','user','ak_cfe3da7e5081f29c','2023-06-04 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$b9bSwD2EYGwNb2sSqoGedtY8HZYaZACKbdg3JrGbZ4BftsxGYd1T8','user','ak_85607aa92fdf154a','2023-01-25 10:12:00',NULL);

