-- Host: db-master-4.internal    Database: ecommerce


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$3BvkVSCKcTF3d/YG5LdbqIhnHGKzZeBJv3RPmdATri0Nt5zcT0wU3','user','ak_1bd2298f180da5ee','2023-02-04 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$tzB7IqlnR5GKHpADjaOha4LIpU4DzdjR5lCVrHEGWck7WbC5iqO5b','admin','ak_dc8c94d6541ff85f','2023-08-01 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$1X5tw423NRZ4UaH.jNsZ3zNucLVtUpi5jt23A4FW9enT1SqcCQlGi','admin','ak_026c36aac85dee13','2023-06-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$l28UIxzljHg6rJRJYe3CqOk853Xv/0m4itMLy6GG5.bTWRwbR0Wev','user','ak_7656c71dd6ef142f','2023-02-19 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$SxHEtio9JT8vPCwehiullStwmjTwoxkU0gQhElfXqGK.g6C55Gdvv','admin','ak_cffea391d945cf47','2023-02-22 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$O5uVKH2r/CNA4vQnb2bCuNVcIsJZ4/20IwtDvln7K/COL9/jCpoY/','user','ak_487c064fbbf515fd','2023-02-16 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$mUBODuhSs8aYQnoxoXODZLfxp57y.3wWhrTeXuBTERKPJyr3mQFFd','user','ak_ee8906df9f75d1c0','2023-12-16 10:13: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=37890;

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


