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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$eTc25BAcq8BZ54NgfB/5HBQXMGVsXC6XgjBfQ6qO21OGQZKIk.h7U','user','ak_bca116375d3a34e6','2023-09-25 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$cKY6JSAJ60Xg97jR02.RYRoqBRwcwRRhjU6AWV/1/Xw7b38koyX/N','admin','ak_04025dab1ab0a6e9','2023-02-09 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$S0zzqYChlspLko82FQED5QtiZeFlrUroSj18ueXf7udn1k0j2eVHF','admin','ak_f80402fc18e78d11','2023-01-14 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$ic7F6vHBkZmndRQujnox64FwQ8eD/4n0FhIWX6VsCtDG4XNtvzbF/','admin','ak_8be9e2e08f7b06d7','2023-06-23 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$ICeyi3AuzcpdC9cdh0.8omqW0sXsFbKCGyDAZ1gxXFZgUlqhxMDN9','user','ak_181442a18ccf5778','2023-11-09 10:09:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=24110;

--
-- Dumping data for table `sessions`
--


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

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


