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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$qh2.JRI3g66gfC0um5bdy5KErgseqDsEkX4gK6JbWlmDJLX7Qbq8F','user','ak_040d7e607c23f502','2023-09-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$o4UXozDUHiEnLVlM0elwoSPosEQi8PbFR8BA9mX3B157SRLJIK2eB','user','ak_5a664a9a7573ff9b','2023-09-06 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$jksM17oJkSMOLPPdjHvy5jwjyQuQom6hiHKOmghcSAr01ZUm9gP52','user','ak_d175a9999b5d5791','2023-01-05 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$poiUzBJ5jMnGFKRLZEVPPnsw1MiYIo6O1/68kL7TCjHttrPGfQtY9','user','ak_2a7d5437b5bc1e7e','2023-03-02 10:00: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=50929;

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

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


