-- Host: db-master-2.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=26796;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$0L32ka2hE.j/rXI72z2CtJ8/mR0ebq67ivOckt4L4Od2nV11QfMqf','user','ak_b20c423f388b7896','2023-12-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$.9UcLSKe7F7Hyst88j0fACAqkSJvZNssLJVM7p2kkqMY40/ilr6gu','user','ak_05a97a5a8692893e','2023-05-04 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$R2BCHoeMcEA35CVKETyqubyrOifKsIf2Le8u7wGzqPfuXSp7TrJDX','user','ak_c437623bfad32780','2023-08-05 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$6FSmnTTCg/m48GEY24Zm1CDnGwMsbsF1vPTJxkgFAuVZkOiWM1Lnv','admin','ak_8611fb50ea7d4e44','2023-10-15 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$whgorTVmmjoZjATaQA2jzR7SFSMp1zn9hSz54xD3mkUQ4irNJqQGS','admin','ak_ee7d136189257b55','2023-02-28 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$7hyZmHZI4hUcMNlXk5SWpi5ma7ddoX1avSefSBdMUgS700ao3zJyZ','user','ak_af3eddc2fca8a519','2023-11-08 10:08: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=27000;

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


