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

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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$849Tal6eHmDD38FqkKrP5kk88v.4NoKC6QkASZ9bnWAv4FWFZRLRF','admin','ak_13d1354123413565','2023-11-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$uxWzci.Ms20t7XnVwze4Sfha9DpDzUwNQZhQSDZeINDyShXEH0D/e','user','ak_7f291723398a7059','2023-06-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$INzS4/elmZ7KGI0bB58iVLS4SIaHWE3PySzANcm7vlYt3EEoQ5G90','user','ak_26c40447636d81e4','2023-01-15 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$tbspRQ6i8K5lUZ8OP3W1UMlUGF3Bd7qtKR3l4yRZhRejkBlEUcnB0','admin','ak_a587e0a43b83ebdf','2023-03-28 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$4.qk7PHmq0rr0uNChXzbR.RPWss/aDijLqgMkUNop9UQe5MaVmvwc','user','ak_0b2590a3d4318d34','2023-10-22 10:10:00',NULL);

