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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$gALgWIDZZkA2.A3V6xNdbsoPIN2btpeT51G6VStPrwC6p.W43MHE8','user','ak_329d54a28f589f21','2023-12-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$Yqf7w7NSR4I4HAd190HoEP1YdGRhtRSm96QHR3BSMjeP/NgJHk/3T','admin','ak_9d26d8d7b231e1ba','2023-07-11 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$5XYkuiuVrZga7k59Zr860KBY6Y5lNSu1z3dpSzMK6XmkxF04XQqr0','user','ak_3517b99962f1fc03','2023-10-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Qao5iSzWNlmAwHdzDfDQ40SURdkIMtvIMNtREe4e5F03Txk9iueZE','user','ak_b25bad50be288363','2023-10-20 10:08:00',NULL);

