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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$H6nVxDLTElivH9O.L7ijNPb26d1INcg4s8tLwDbQDKn9YOpH6eNPK','admin','ak_d699be982e97e787','2023-05-08 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$oeEuxC4O571FkJlygfHvqDlfiKfipBZC7h.QlQiuJiEihpS8.GMiC','admin','ak_c8ab8fa97ac6346a','2023-04-09 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$YjgRTxb701v4RBMGs0fyMK0lRNUUXelBZKEg79lUmBIdU9Mm2gNeA','user','ak_6a5c47648ce01298','2023-02-21 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$f9CmtTg1BambEHhyhiH1YD8KeA/UfkxSbQ.0NwfxZgky3geZJ8D2b','admin','ak_8fb7f78676b9481b','2023-06-11 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$qKyCcoULDKNARNDAfccOoLfrefmeKLieoqJ2pt27SuLocJiH9PqPc','user','ak_6c4c3d30255649e1','2023-01-10 10:10: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=43811;

--
-- Dumping data for table `audit_log`
--


