-- Host: db-master-4.internal    Database: customers


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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$s4GNxdUceTv5e7y6DxZSBkbWsLqheV7cyrxDPwTxNZd9QR5OIDEnk','admin','ak_0c6d44321c4b7d8b','2023-11-26 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$OX.37.wBTXLiY/e7Yg6nhKEXBxDyIsOeSo7xqPyrwgNNkBsNyQN3f','admin','ak_d19bf8076b851784','2023-07-21 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$ISXRgXIJuclvWe4iIQ/b9e41GqSUu.dlSbN1LtSRbonXc/Xm9EF9M','admin','ak_9de45cef26962ea5','2023-02-22 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$vKctEUfkFHz6ht5JVydFbSK87FXNK54jLceioZEF8K7wHjRMTjLJY','user','ak_a1d3a07515ef9141','2023-09-02 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$pTIFo114C9VegNdK5g1PCDjaWVeEtWOwIqaqA/ud.rJxwVDRRHVdp','admin','ak_3125b2a4ba5c70c2','2023-08-16 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$r15WiJWhTlsUXouhYMer9TAH71hlw/JkLPdalyJyKLffWAyKZjM7Y','user','ak_f54ec3ef20542988','2023-01-13 10:05:00',NULL);

