-- Host: db-master-4.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=28327;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$/Dg.knCNqSGrYY2jFIUX/cEZRZcWS6iLsQQEM7G7uMn3ZphESuuEW','user','ak_9bb6f57ce5a97369','2023-01-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Leas95J0WmPz.YeX8XBJXVU3WSgu8ABSnZULxQdk/q2B8QCILBaLF','admin','ak_793e03a37b242f0e','2023-09-03 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$WAQvKwxcBfAkWG4g/kvrXVFkAHgpz6n1ZDcj9q47yA6AqCeA0JiID','admin','ak_b5e8b7cf73adf692','2023-07-24 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$p8DhSckVM1sXswpwI/SQsGtEhRnwLJADt5tomKr5rtIWZloZq60oe','admin','ak_2bdfeaff36835587','2023-02-03 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$N7p0k3cW7fsUIHzz33b4xvdUmdDtf2C7AFeWeQz.E7wc7/e.SwkCQ','user','ak_f6d17cdd4da6f8cc','2023-12-25 10:14: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=40808;

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


