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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$CfcpeJ4S3YlKgQeWWqTB.d0nVvkbfoGtn5ifO9qXdkj9c9QrlK.aK','admin','ak_2bd58d6350e21e23','2023-07-25 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$NLZPELdizccdwkh5G57H.YLy0yYL4g80jv6XlBv5QZBVyPjHyMjad','user','ak_5d49f3cb5cc82c95','2023-08-23 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$jbe6BAHQ7/oZWW1.8Qe7x0ofpjMVdS2.mzC0rvQ3WFqrKtElg89XJ','user','ak_09b39098dc78bc26','2023-09-09 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$mggPZNEF4/I.kmtKF26R0tW9DXGcCCERL9nLFOi3Yu9aj9dcD2dqw','user','ak_7dabf4c939ed9d8c','2023-03-24 10:06:00',NULL);

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

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


