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

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=13929;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$AKSfTuw5nfdINE1B02caSolRW64y9dMBeKkOCrgIU8OZ01eZDtZEr','admin','ak_49523406cf620784','2023-05-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$jWpzMn22f/.b/.0Fo60NZsXRwN2msuu5qsi4YzfNVaSebHIdk6SFy','user','ak_c36befb13af349bb','2023-10-04 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$6aZe5P.rRKdoHBW06zDz6n8BtHNCkqkDNIGZH/JBC0.142l5kQ1XL','admin','ak_faa5cf680ee42294','2023-10-05 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$Txp9kkN5T/5aSaPC1zcmo4ri5dJdkdwDbbhvJbaZnFLcUa1.ubz8i','admin','ak_84f627ba38b99846','2023-08-08 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$VmtuVJtIJtC/8rVt9tLhqMhXAG3.qvbW/vLfFJRZMsrJhvv6NMb1N','admin','ak_e0bc3e2ef1cf620b','2023-07-10 10:03:00',NULL);

