-- Host: db-master-5.internal    Database: ecommerce


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$MG7J12Pn1sEG8q21jwI8hAcu57tmLrjtBYTdah5tRqIAuJqWFK19g','admin','ak_9b3415f351347003','2023-03-08 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$m.T8Kcum1T1391JtSpnhHQAwCCPDzMh2ntp/omZdba3WUufu5vlik','user','ak_0995cca86627bdb5','2023-04-24 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$oKl2Qd5q5qqeifyW9T4WuZzJDhD.xDIhSkwAEhIfAoYIxiLsERixR','user','ak_cddd32b784fd9104','2023-06-27 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$OJbk0hweeMibHSK2zYChSYTjKJCykcWSbraTqcBgD5cAZO6TihY1S','user','ak_9cfb209a8de8dbf3','2023-04-14 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$37KuYWlmUW9vYZdVjWVScUo6siv0akQsX7reYMXtMuLTZbOvYwvFB','admin','ak_3263f558ef473db5','2023-02-16 10:17:00',NULL);

