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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$ZEggdt16ClwkZ/5Ale5jLTimkzyuM81JqX0FTt6ZWYybbxNJ5ZcFy','user','ak_fc449c3decf22e6e','2023-06-07 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$hcSZxAjKzY6BWGQsh2aHuL/KzmSBIC57sCxztv8RqH0kx1KtRU6l.','user','ak_ce6af84dec937534','2023-10-15 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$SrKlVGhXmAQTkpFglNYzcTqw97c4iI9ncyze./mY2dfz6sNAeszCn','user','ak_07289272637f0e3b','2023-04-22 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$awWsWx8zFSSF.WABEIwBI2L9JjCBr7Eptusc1cWGUPVSEA3QYSr/n','user','ak_57c30cd5b2a901b9','2023-02-28 10:20:00',NULL);

