-- Host: db-master-9.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=24689;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$A6ckPPPSzSSch2FiSKfu2G0YFNi5PHi7Pzy6tJ4dJ8/cmzByLrwD.','user','ak_f6f4ecae96ef7d84','2023-10-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$tAPWsIetLGpH7x/MO6m1Dd2ldjhaJfZi7jMaH57V5Q.OBn4lYySDD','user','ak_500b36f33f621718','2023-03-17 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$7C5EWNSyyLcA1XOL02LvIpO3LK2OjyLwcCidnV0tNp0BPLzPMcNSh','admin','ak_26a74e9629e2db86','2023-02-23 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=48037;

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


