-- Host: db-master-0.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=8196;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$1DGBwfSVjEu.CjvKt0EqBhGXPPmWHsukRMmDV3lLs1HdB3QjI9IhS','admin','ak_19c1fe01e7ff70af','2023-11-13 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$l.147U0RqThupubPJqfh.6Of56YotSnUxBNCflXiBFAqePPxpuG.U','admin','ak_cdf0260c85bbfa9c','2023-02-25 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$bddRzGviJhYgnaxTQroMmFgf04sVbNTUDO4ib.agJvUGL0elSL8Wo','admin','ak_be67f749aa5cc453','2023-01-16 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$RqOVGkEV2/0kC/XARNJv.osJUVy8fyrPa.hzGR95KXUfkj4SEt3/Y','admin','ak_d5e548864c3df092','2023-04-03 10:12:00',NULL);

