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

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$cfdcPPJbhfsu0qKzgwrvjKLVgzkM5GmoVroR7Dbs5rRifOxE0fIuY','user','ak_f80e2a970fcaedac','2023-01-19 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$rjPLcf1TNhWTNSFLeeXuQPJ6QX2dZ3gQKD8okh2ULfAD9UnL03fFw','user','ak_50b3f5a428bfb362','2023-09-17 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$H/JtF/ynPj8PFa76PUl0x37F9mfMMnAWCh0QaZMNsN/GxWW5cMgV3','user','ak_43903ffd4af845d2','2023-01-10 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$xJR.Og8Zc4D1E.IuZt6mZpCj3ePy/2Qd3x/Lg5khgz08W3WuBbMnW','user','ak_78a558c64fcfbc00','2023-04-20 10:16:00',NULL);

