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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$mtkiAut20G.bsbA3k3R7ZpVPgy0mtTDRRv2u6jSSJzdspwx3HpDdn','user','ak_cb1219dbab581444','2023-02-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$OesokA/wgDJbQEApOyT9cZYm2ieT.vEAMQQw9aFop8voPyPKLmQG/','user','ak_2216d700e13c8552','2023-01-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$FCJGb0j7Qb6PogyCJk46n1QZE32gYJoWQ6Dm8acYcvMTlz8DAFU5J','user','ak_e5f764054161aceb','2023-04-26 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$IUd7RhqhLWh21HGRe9ztkjQqjio0wYV4jg6ixKTZSHkqFSjQmQSxz','user','ak_39c5dab963cfaf37','2023-01-07 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$QQVXmibPgahWNCb0ihF.VEIRFEhkuJs6RxJvv6IFnlwEfLIPmXK/r','user','ak_dcfa7af8cf07e18e','2023-12-28 10:22:00',NULL);

