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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$9ClWzMe9QIQ4BzdhukOUgAHyiMQCjr5bA6P.LdLp9UmIEvVfuHm//','user','ak_1cbc438292e2c1de','2023-02-26 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$N8G4cFyl4C1bzXqAuAzqIq4Vn8g0rEQ/JkboQGPQhWWBn9fQKRt.n','user','ak_af4d2776ab90345c','2023-06-12 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$PFysq1UjJyK1ECtKqWyM.C2NtsiI3t4iC9Rshr4L3EImSJcMq/Z5I','admin','ak_860be0f47294f310','2023-10-01 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$ZHN/.6JWBQMZgpflRChuEj/FSzxMo4k2Ybj8eiNEqYTANfWwhNFPD','user','ak_565bf1b5a50ffcfc','2023-03-22 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$Fx6s3T3VZnXAIjYxAyZ.QwDe8ZkPGBswg4mE.R5mQBJLdolJvwY7s','user','ak_13f5d17126fc5f30','2023-03-25 10:05:00',NULL);

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

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


