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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$jx89bFoS/bXWc6e0WVu89NkTX9V7mXcPRkVibIMQVNFlU7xbfDki6','admin','ak_4863a898f449a65c','2023-08-19 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$ZKNmqxzBpFnlo.RGWidBwbFKMiRZ8HKMxQBJx0ukhSZ7GVNh7fR.U','admin','ak_9643392c7c3bc057','2023-07-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$JhqRa1BgG.Y304RO9u.2YQ.pTUD6z7CSIOYUUJXlTb7doJacKTnqG','user','ak_8b1db074caa4a437','2023-03-12 10:11: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=16568;

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


