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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$QyjM9Ir.6OsV04Df/K1TRZ3lky90Ls/9H8b/Pi29TOxUVL6dF22M3','user','ak_569f079974b02ea8','2023-05-25 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$9MBavBKRGOszagADWYHXG4vfryxvl5p/OoM/wXkJGt009.8yzCkUS','user','ak_1de85ac6d5b547ae','2023-03-07 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$lQvNHpdg2rH90itg4VF3gRwBJpbOsALQUHuO2w0BURZ4lkvzGCjQF','admin','ak_495feb941835af6b','2023-06-26 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$JLurf6zE5M1nShPXU4ifsRvhYutMf7KeH0r0RAIMLh4KDhxLki/nu','user','ak_4fa5af247c6aafa4','2023-03-27 10:07: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=27114;

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


