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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$Igg2m1mULXQcPIX3YaKepsITf1QU.gPs4xOjVpPwqxmoRyxv6hOmW','admin','ak_1ea6b0fc1bc43d59','2023-04-07 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$iPlkj3BDtt//CFPQL/IJ1//YvZtztn4pE0cMuz7Q5yrCqQajM23OC','admin','ak_8fbb06de50413d71','2023-06-07 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$UE9iw6zWxPej6tlhuSnzYCoi//BQAkXJ6/ZB9JUd2lYKuGI/WKkc.','admin','ak_27b8ab7858abbb44','2023-05-07 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$oQEDfIdllz5jA1QuZosy08MQ6HIH7.vt6PLyIyp7aYCMGRYyEp06k','user','ak_97b9fdad964dabcd','2023-08-12 10:18: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=23573;

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


