-- Host: db-master-1.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=15193;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$btGX.OSl9JkaEjMbhOjysQyXdRj2luxRZ5kmIi2fYyVKKjD20RjsW','user','ak_38f56086cbd619ce','2023-06-22 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$P165NRsaepwwtAaFr.q5QXo63hO6Yp6Mb.apfnIBcVayHMyTzg2Rr','admin','ak_a3cfa9d6f6a28504','2023-08-04 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$4LDGhTtDgFr8/RM3AmUUG6j5SuBSVa5m5f3K9BmkovC5TqaQYr3nJ','user','ak_92fe047e6f939daa','2023-03-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$vOOjOqPZjubcAdWxzIRK4cC5u2p4LVu6djcNbckdit0FDZ/VdtNrH','user','ak_7bc4e76ad2a1c8e0','2023-10-07 10:21: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=36282;

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


