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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$oS6p.0XetUNMKSWzFcrFzSBfgSitXXEVMmcW23Warz.XztrEqFqqz','admin','ak_37726e6facb50c8f','2023-05-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$XVG.XU0Cpp8oj33RPvl.doNUc9YUqdnLtVsyWnRImwWTxDNFfoa2o','user','ak_b5b5bb954d2b3102','2023-03-10 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$lOoBuKj5Sm6JaOMAS1rM5stjhXJ1da1bVNSxbHMMPMTX.4HN6ttbC','user','ak_39844c6dc36b178c','2023-07-17 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$p1MPufbuSMxMwKWeNoLqIQGZi7gPqzt841hN76YSLrk/BkaRJyskk','admin','ak_bad7e79d5f095b11','2023-02-26 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$vqj5TMdqsrthIbb5tfbIyB709TG1kfoKhCeISuVpwmFUY5frJLAMy','admin','ak_c22772a1185cb725','2023-01-20 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$3LHHqmqVI5ylKoyEr7.yuZGnTVQrJ3ax2V07db5L.1GgM8TpzArNt','user','ak_993f579f367618e9','2023-02-20 10:13:00',NULL);

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

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


