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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$YSW0xJcl5Aq1SR28pL3n1VwcA0u9M0yOLQboHXnoOezYG68e5FSNK','user','ak_fe08e4ddc139b791','2023-08-13 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$nizHTOpnyVR6NUNSbDfSX9dY.hCL7kkQb2lENDAmkncqbjEfJqGK2','user','ak_0cd6031602d2a271','2023-04-04 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$0fzqJ5lo.bYR.S0L34Tytwt91C7N8YBWYjneqoZ2uf5sZqz.fk/3U','admin','ak_44a90db3a2895cc7','2023-01-22 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$8.6ZNFXlErMRaWjHYASu1qYebmX/Ne2jcEG06ylbK3kq10iylIBq8','user','ak_421de4bd34c28661','2023-10-28 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$Qr2E1PRkjty/BsJkBzrQhgGX5uy.axAfkcJBsjo8S6VSCHG6RX5sP','user','ak_450cbf48ad19bc43','2023-02-03 10:19:00',NULL);

