-- Host: db-master-0.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=23154;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=2099;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$FbNV8vXUapC38542l8QyQVJ/aU/IKAsO.dMJ/K8uGsIByO6IgIvz0','user','ak_8ce4c22bd830e14b','2023-07-11 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Oe4M7OxzszDhZB0lfOErdTmCuAeWc2JUfGsn27zH39mlTlH/YgOh4','admin','ak_1c1cc9655b268731','2023-05-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$ZhPz.BkPfU5AiIO5Nxg6DCDIqoN442tZGilBNoDN.Aab/hZKxVBOj','user','ak_6a030e36c1d33c36','2023-01-25 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$958UEaY9zBYrHp34oljRhg3nwElfO4H1RnMED/mHUXxBxAZKYf0pJ','user','ak_7d79c6c4e00e08a9','2023-09-27 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$.sQT2bEOSMTQVMtn.4s69RZZwvO9GSZbTlp1PqUev9MK09dxoc7E.','admin','ak_782d028203fa09d0','2023-10-19 10:07:00',NULL);

