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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$tEL9z2vlGWnxswAANvoF61z9FHpjs7lnxj1bWvPhkkO6/zHqnEDN7','admin','ak_7d140a70c04ff944','2023-01-09 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$RHPzTuhzguSOl7jdT9g1XlhMA3895VZwO9U01IAVdqukUJnRjdc4y','admin','ak_52fc1291fe1f747b','2023-02-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$Juk2i.iH.fTD7ZJpUV088oFNe.ndT3RJZO0TKI21Ple1sg8/eDDX7','user','ak_6f4d32599e62c425','2023-12-21 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$3awSaycpbCA5sj0.ocohc6ulhRmD0mNPhVeS34/4QkOZnFeZFSMDL','user','ak_3c29518606414c35','2023-04-16 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$klf.VHsQWIX8uNMEXbyaVIG6TOixAGn0Me8MNgpzTkISkOR3K2YM8','admin','ak_5b8e41ed9b84173a','2023-03-03 10:21: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=46063;

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


