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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$x6kTgcTt/3sJqq9St/Rwb6PF0GOsZOxbD5BSVp.Q5IubnWxnoL1N/','user','ak_63cd2f891d5df62a','2023-03-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$/.Genk6U.wIrrQZBpCPOAcvpuy.GdGlwEcODd0xKLXKklA407.t9J','user','ak_1f3945999322ecc5','2023-02-15 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Jah6wyWNQ5xt7VGbVIHoO9DgKD8AeqHKgquieJtn3UeAmz0t4P.bL','user','ak_91f61f3432b5530c','2023-06-22 10:15:00',NULL);

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

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


