-- Host: db-master-9.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=48292;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$/si6RJeP7UJJyflmD8i6KEsCsD3wAsQC36IDXb/or.EO0mFwYoPm4','user','ak_a4c3700d055534ea','2023-09-26 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$4UITDK7zTtzHYm0n5wn1vuEQduuS00yD73Yc8iWlFbbLhKH5JVyWd','admin','ak_669a95a819c04acd','2023-12-12 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$/XYbWm8TQlrXzSC8pAcKFTpclUod4y7z.0ZOxT2RUkdlSBZar2FL6','admin','ak_ca168c6fe1cff704','2023-08-25 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$.Y3/nhNy4aqcTHd3cu/ygY/JHdnH0iSMw54GuB7RaAL0m4NQP/rUG','user','ak_ff33400a91b59854','2023-08-24 10:08: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=48175;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=10756;

--
-- Dumping data for table `products`
--


