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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$0PRPFCYA3tjdhdSk.p4VUf75qQlU18nYx5w5v8RRhxC93ctYrt5wd','user','ak_a286ca147505329e','2023-05-27 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$iT2AXzHwFTvIOJTWyJijsgyHgpfG3wrHbm8tY50RJMOUtXDUTY3zH','user','ak_630d5f9ddf4b02c1','2023-01-07 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$c8k67Fh8Nn7UkcQAv2f7jS/bqmO6yE713OVSAfsCJJdhEuJS0iDKT','admin','ak_e7f7726f347a7ff1','2023-05-06 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$bNG1RmyUayHGjBCrMPiWlLJ70br1017hEMkRfnAztUPSMuKsLeeqZ','admin','ak_19b3cd2d97532766','2023-03-27 10:14: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=2935;

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


