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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$l.euXvdzCY5Ej2OtFDJrsOJm972w/l6aA992kJB03F2dao1e7ot0Y','admin','ak_0fb1f43d3278917c','2023-06-18 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$tFCyq3L/iUabtby5RKUTBK6wuPxV1juMYFArkStMuMiwicxzwOWq/','user','ak_f801e46d69f46dfd','2023-01-05 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$Ejt3SKB9uLorRSrQHLYRKopswxB5nISaG2C79Ds5ERihNW05sAeAf','admin','ak_1d5fef2ce5cd3c79','2023-01-03 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$0zW5E.LbTy8chA8QQEsRXEKhB9zPBumbooEb6BqrENy2QdxD4/2qk','user','ak_3bde093424a54c7b','2023-01-13 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$22zRCEvwL3wtrnGNq8O2j3lufM/M/ETHseAGffCJlC4vgxJgtkwo8','user','ak_009b5e91557bff2c','2023-12-28 10:19:00',NULL);

