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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$3NKzyNc59VHEFwfE3VEX2moSi8jwhCdQINb0YA7WwxXmgVk094FlF','user','ak_35d8ca26653cb065','2023-12-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$ltQPzYiuR7d6Ojj2umajIeDDMbhSAsBraduWkrJqRPSSkDJktpvE1','admin','ak_ca1aad9cb5d06f1b','2023-05-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$xynBF6PizcrK9vgsvq53M6VgyCJeB.e/Pzx1XbOQlyEvMg8Kuuifd','user','ak_0d61517f051c1342','2023-07-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$jKcwNXhsryapoUmdIx1zE2EbnIsbJORNsa7My2xPX17c7gWe71Ksv','user','ak_b5aef8be40902420','2023-09-14 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$wnh5FLd2k/K/lAWRAOEVJExzo1CTYe3Cd4fDOd0fS1OpcZ/pA8.Be','user','ak_7fa49a3cd9949a19','2023-11-25 10:00:00',NULL);

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

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


