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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$4T3oYJJmuyHINaLCPaMIX6czOuwDQSsbuUlSfDE6cQSh2gDVIugoU','user','ak_bdec8b1da8927fe6','2023-02-13 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$CHCAimxhwlNaLdmEz/DGHw4i.BvoMe.i53BVm3ungNP1Vqr/kDVJd','user','ak_4492e5bf3377a0ec','2023-08-27 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$dccL7lLHO3DFzk0dI3Xql5gThuz4T7Ce5qLglhtYAJeOg4EdNZ5vk','user','ak_fe3beab090435636','2023-04-12 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$8lhJnmzE9w.zEtRkqaI.jxe1TtwsvU.CN4xp6.NOzc9kfJ1Koj1Vh','user','ak_a564b765660eae57','2023-04-06 10:11: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=46922;

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

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


