-- Host: db-master-8.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=46906;

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$jSWF7puS8mLSroF639S/yPRYSo/w0KPnB8A1oUf5zpb.RU9R8IP0v','admin','ak_b849b6774e53976e','2023-02-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$vrNLpXf1yD4PeDHOnfjKe0wXw9IhQ97iileT/.1/Kr7ZhhKV8EZFd','admin','ak_05a130893c521b47','2023-05-17 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$5OP23fK1WtMLGknZm6cWReey/od59bp9JcfQwTGIt0W4.Manxu1qS','user','ak_b1d5b6dceeb3212f','2023-05-06 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$v.LmQ4VusEtItdK0tGePTQobr8KoSfVnDIf59kjawZpO2VzTrU6RA','admin','ak_7c6211792e2afbbd','2023-12-28 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$r8H/bf3tlCzhM3cqi2c7keGfnQj44j2rd6gWjyUq7N2O/VlcDLyUp','user','ak_2702beb9959a0919','2023-02-11 10:21:00',NULL);

