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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$5D83pFp/7/4eCJPZHQaZ7eqrjv8JgEhQPZB68XefVUuxFldNxnvrQ','admin','ak_b4016b53589fa53b','2023-06-01 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$rIJuiODDkv8hAVzSSwX7.3EEF8cWZRpFUgQw1YIgTGUQz2iDYtQgL','user','ak_d9af446b42937deb','2023-03-03 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$28W9LMk9dtBp4Pqx330ZR8YX5gB68LlpS7IP85V5BRc.remkPuucj','user','ak_db50e1c33de68c1a','2023-10-03 10:20:00',NULL);

