-- Host: db-master-2.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=5969;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$8E3lptYSBATdkHaDIGrdkDaQaEZO5nrBB5z6uATa1ryviUyly6URG','user','ak_002dc9bd865468ac','2023-12-01 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$0V9dLTR7wjf9CTIlYRNAkv2HI3sYBSGm2IxB0iD9QbVj9fUZz4IEK','admin','ak_bb91f87bf7cbea21','2023-03-28 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$3f.kGVwUcCkQj4RA59DOWjwlc1hLdskkegcNJNh0cL92SIl87lzSu','user','ak_6d12096a840aa618','2023-11-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$d9K4SauH/2e9nu49CDhs2Yiq/pGn00xmwdRq7gpS6uylDuekJbbY7','admin','ak_b098d667b5f0ebb2','2023-04-05 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$fx/oX67EgXjV1hLnga6kf6RfwCYc7ieE0VBFMVTPM5dlrSBlXUbqs','user','ak_ce1a7478f5004531','2023-01-20 10:12: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=45232;

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


