-- Host: db-master-3.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=24082;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$P97VHfalyesut7bsNA4PZjpjMWZMFEO3SqfUHNK.IrNbn2mRVLFFS','user','ak_2f40b9fff78fce3a','2023-12-01 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$gqoIfRR../t3j/881wTaaGXK6x8gWK6CfuA5nyjdq4L.JYDje6zsJ','user','ak_46cca695aa9459cf','2023-08-28 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$ZCIfKsqElfYOx4Mn.hhfXMmFGkxh/0s0/8RHZbP.fHVOD0M7lGxSO','user','ak_9b14e66dc784e149','2023-10-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Oxnl8hlKkK.xUovJbGPAC2FWuaEKnK9Ei5tX6wnBzii5xGVq0kJB8','admin','ak_8e87c37ee82fea3b','2023-05-24 10:01:00',NULL);

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

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


