-- Host: db-master-4.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=15991;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$eqjq9/9H6dm4hDx9uekFThzpXRGeVnqPDZFxqt7yfJAkluhRJB2qu','user','ak_da3af9648205f08f','2023-04-01 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$5ftAUtAzFtlXMou90bQ5H1Aequ3R43IEbprZRYWB8b4qL8lkjxU.4','user','ak_bbbfaa4718c0b276','2023-05-15 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$b3gXCqEbmneddKleUIfWdgSkawlmZYGuprlkHdLwHOCV0E15wy3WC','admin','ak_289d7eb77d52b192','2023-01-27 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$jNAqZt/eZYur6dTQ2rhCZa0CV98FmtGIE3mEC4UG5r0IjKfXKJJqt','user','ak_e4b772a243ad97e5','2023-03-26 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$1POc5rkhDTXC38j8WyHyPm7.O7pNwf7g5.Q19zd1AolEKTspCz0r.','admin','ak_b9a1bdb2db55dd28','2023-10-26 10:05:00',NULL);

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

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

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


