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

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$qJrWWX5meSrMfXEVfkVJwUHvjcfurvrLiXxj1iOFQYEO0ySEKqehT','user','ak_5e0dbc3dc0ac7e0e','2023-09-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$nFvA9I6QTdDyvml2aEtp2S7nrra36/.5/xJ9kOM1oNCIMGmei9LxP','user','ak_7a6ce224bc04df8b','2023-10-04 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$7fi3wXWJfAq9qsErTNsX9GRUrTHdJLqgIFPLIgUGK7KFe7XQfNtiG','admin','ak_5d95f1bd96a23142','2023-04-03 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$ILcK2ofL/zjPomevep03cDfHqZRcbsWhAZrePYmguRQd4iMwS781U','user','ak_da4f26abd1af41bc','2023-04-09 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$jdyDbs9QB8KOXXv733VIBZmTtdSrCoP3iz4GuPS18X4uxY0LFk8kB','admin','ak_1aec32fcc1232473','2023-08-04 10:18:00',NULL);

