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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$rEMwvwNuU/mQAV14Vf9e85OS3k/PoY2MMxJxYfaaxqYEosb2fVVTV','user','ak_2b18631bd773b7bc','2023-11-21 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$v1cpJZYMaMf.eK4Rm/wFOlckGR5fzRkOFsCc9SChx89jda8N4ALSS','user','ak_d01e2ae42e5f3501','2023-11-15 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$umeo7IqHCE.sfVO/3tv6ta08QwW1RyajFrKgc2n4Y3STUe5eEKZGh','admin','ak_6ca8925438bc70ec','2023-05-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$1APPIusOSp8yT4MFFtMPlqtUV0rsPHea6zP0b7.Y8.J3/g/5Q4ndE','user','ak_9b15790ccdb498f9','2023-08-04 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$DDsDybt4x70pUmqLcG1e83VZZSfcAOKA3E99kqN6Tw28V6JMuANYd','user','ak_c36972b26bf97173','2023-06-22 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$hn3ZqviqJCiCtafuc9VB/LG3PwS2WGp6ht2y0iYJBN4Xpe0aP3Y5K','admin','ak_254e01ee5c0f4e0f','2023-03-15 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$tPX5McHO/Bfb2q1OlmoFV2OXnzo2B3XpEMbifgvao5/MLOWO9h0Zx','user','ak_55dd4fb675c0c0be','2023-06-05 10:17:00',NULL);

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

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

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


