-- Host: db-master-9.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$th/ogjz3rFOMOtlabgbdK7HCRZQZ7rDWK9W8M63lXwyPSfZrCs6tl','user','ak_09d6ca8f575bf219','2023-11-12 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$jAamseIcRgDdcrhna9jQAVGeqZRSJ7wyypuBdKinrRtL6DhTmw4P2','admin','ak_cfe7f819798323d8','2023-04-12 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$BTj63vEx6BXSnLc3DfWKJUmpncmKejkDviqdXY1Gsuax3a48tExFd','user','ak_b07d599491e0006d','2023-03-05 10:18: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=32217;

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


