-- Host: db-master-1.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=21765;

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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$nyl6GERo1vOsm6SbIF3tmd4rK5xVDuDdP8Wo9hQ3.uu.cECQKyzyc','user','ak_bf4967c5fb5ff3fa','2023-08-13 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$1zBmMbefPig6R3GlvoO6E4qSj7zEE5jM5oXfcnLzO6/hlg0JrZEYP','admin','ak_ae8bdd47bf54795c','2023-03-01 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$/m6xdrszuuXE2U8..P0IjXnDARh7xLJtcWlSBvGMaBZCCwHutNGZS','admin','ak_45d4bbe7d7181f12','2023-10-18 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$O7CIsNXYyA6nowDWcgB2iJUv6SnUzC4UJKwIM0VaePuOiihPKxJQl','admin','ak_fc9add7eb89bb02f','2023-10-06 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$H8efjVVm113LPb8959qWt1tXLpGJDIkaYbYENDeae26hEGNUdH7GH','user','ak_768c2d786c887a7a','2023-02-18 10:18:00',NULL);

