-- Host: db-master-8.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=45760;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$TboeoTPlzO5rODGrRya.qmQSo7d24x3ei.LCl0l/kUfrl2lVMJWcV','user','ak_c6919f8c5e4420fb','2023-09-13 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$RXFipIma/GVFKPoJ.bVwWt3SLMQ22XD0RfVGb6arxPZ8EH.NKJZbU','user','ak_94c36ccfe5d070cd','2023-02-06 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$fXgHRNA9uAaqAa0qiGpvJEfRZMCeL6A2rdcPrJLtNh4LCbWDbUhno','user','ak_bf593015065837e5','2023-10-25 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$fimVDe2aLeMYZTQkrxZ34ukg/XRvXpPM6IMVQMSIkJ/3IfB8kfucv','user','ak_d946fd554efe3a55','2023-01-16 10:05:00',NULL);

