-- Host: db-master-5.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$WXUfg3GuYP25cFjLgy0UGoUqajJxhZH..krZqzchdLCb2i7SIAAgc','user','ak_87c75a286b5a75da','2023-08-12 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$QstwDWXOdwOfV1Q7CqhdC./5sf1a1DgwFbZFTGSnWXuyI0pUtbW/C','user','ak_7a00c0d3a13dec7a','2023-08-11 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$gC4GxtR8a61khbit3CpqQe5FQqj.r8qMR9F.zaCWTYkfS1/YP7LAY','user','ak_fed0a9188f103e43','2023-05-12 10:00: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=50005;

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


