-- Host: db-master-6.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=2228;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$9WSrRywU0mDuIKictE1CkvF0pu/Nc.sTR5ts7W2.RjOq9o08hD3gt','admin','ak_82bc1aa698597d71','2023-04-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$LtDYPhH4yOwI6n0vjf3EYGgwslgvPQP8nUSRh67RzN2OnzHsVolWX','admin','ak_d2279fafcb90658b','2023-11-23 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$KWsZy7cV9kJwv.BqNeXrc7OfKXBhGCLDNEQ0T6EfMwZSSPE7cdUC0','user','ak_4c63a9c73524737b','2023-08-17 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$U4lw9DyeeMqNZbLvcE5CObi5mnEEISxaKapfm41ThLKLzjURfxPff','user','ak_2068b9c78bc5a302','2023-09-19 10:08:00',NULL);

