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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$9AD6ixZxlhoqlLbP45EZA.sVFX4yeNLVXMJLiNa7xRWclNSOd7pI3','user','ak_bb5cf9e935c2487e','2023-03-08 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$MJJAyQGW1mTShB04mrkGe/zT6ctymM9ROg6hFdjx0VJnkKtHySqH5','user','ak_7b9cc39769901707','2023-02-28 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$8dNTlUm6RJnpyKtMzdQ4e28N5SZLem3Z.4JPKUbNYIOgGaWS6iEQl','user','ak_b7f4a24f6021bedb','2023-03-25 10:14:00',NULL);

