-- Host: db-master-3.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=16045;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$txYMBL6nSf5KqO/1S4YsvXcZIuacqBv.LguD9pLvtgggqXwU08v.O','user','ak_f4496dff0a3317d7','2023-10-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$gM272RzBNGGaN6jzjCDNXxnUe6gwzuYcVeSyQM9un./ev.Cqc4pEo','admin','ak_3518a623523c8b0f','2023-12-05 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$mPgb8hgokBP6Fh6TVg7ekhfiKpA85HhXwiNjVfmxN75feNAtgnZK2','user','ak_1d77287da9f2c80d','2023-01-22 10:11: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=23250;

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


