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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$CdaDh.kXkX145Gv.5.pThBQlXVkC1Vta.5Ag4NpsbWgMVM9tlTfcl','admin','ak_90b4d9d3cacb21f8','2023-02-19 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$mauXFWZmqSfVASV7vqDatbESKyl/R5IHTXywyWinAWg0WUvA7TaSl','admin','ak_61ef7dd45d166965','2023-04-28 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$xR5ocw.PVUb9oib0cV8ZhuqDnQcA1SIGbCi3Z2IeIBn5/bSiR3Oea','user','ak_1967774224644a55','2023-08-17 10:16:00',NULL);

