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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$gT4y0ttB/1YFFJzkzIFg5ED4rnS0DBCz/et7Z0SFLvWGlt/rNeo.b','user','ak_49bd72eaa49cdaee','2023-11-14 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$FsM3wudk7Yy8TF.e3wGH./tTkBMuKMbyCYYzu2MKENmGTg26gCZD3','admin','ak_0cff4bd02319e25e','2023-06-18 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$yuBKrkYbWW4NN5.oXHo5dWIFb2lNJFyXANLR7XEtsZDSWZqZrMpvc','user','ak_32d5c42563484e4b','2023-06-01 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$aUvJwQcRFNUqhkpku7Sfupn/TM60BqN5DJ8WGbXPpz4VvMcagZYEz','admin','ak_30f0daae2049aa0e','2023-12-06 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$XfptPs20HRkt./C2qVnjWUhQ21tNFYfMwihyUrjNv6ZkCg4Ga8btW','user','ak_38f1e36fae73ac9a','2023-07-24 10:23: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=22710;

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


