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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$HTZRlZemZwJQ9CVIbzKBXhdY54By2D.QkpzK1u6uPGnK3F7N04MJc','admin','ak_e1b29b99ca19c8b8','2023-12-18 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$gExqC3KxUmJS/J6hqEmLXoV7pZlBP6ItdcMTWjYs0vRqXZID.SJ3i','user','ak_c8f88202d2525bda','2023-12-28 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$8f3Y824ILKYsJxxyEBH.vB60QJBh1AdfhvbB0dQv/glbjEQyaZO/C','user','ak_20ff55c92b265d75','2023-08-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$gSMtv2DfUkA68X9PWZfsFfmSBVPWxTASbwM7scIYOyb4kUpYPrlsf','user','ak_7cdda793bcddcd23','2023-06-05 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Y1JbXQpflaAQtjsl1el901PimDD.zi4Bdt1BCPT/kTx/vc0itbah4','user','ak_32aae86999d6e88d','2023-06-16 10:22: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=31365;

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


