-- Host: db-master-5.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=23974;

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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$lFDPC26G6auEBXfipnih8hszD8DNJpkEK3Aw/i4tKHTdWfbvGKupg','user','ak_c8fc8979e935f805','2023-02-15 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$u6dt9lMc59hoViTCpNiEB9ZavQg8zE4UxTt1pY9.rL9te2YULZGvs','user','ak_19cd218053cf3f31','2023-05-13 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$4x7FeZNXz1t57qVXB4UOqEQhGRzArs3Ua8dAH.7wiT/YWEA6PtkMM','admin','ak_efc3bd6a25cc8a6a','2023-07-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$LagiuX8CN13/oewA7KI7oTVvYUx2dSPmlgSM8yKKiCx57jhwz65ZT','user','ak_cc083db973db1ec7','2023-11-26 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$nn3KOmhPzjY8Mr3OXqb2JNuSIQnValtMY4i/63IjWgHWZiHlEAKE5','admin','ak_d1883aca8977bce7','2023-09-03 10:14:00',NULL);

