-- Host: db-master-1.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$rLYhyBdxRSUK7/MEu4nwYO34OyQs.l.QMZAt0978szGJOCQWnwFRs','user','ak_5394697f93e2c27c','2023-05-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$QguwH8A3nHOHqz5YN/.U1iIxVrO7PJ/E7MednTm7ev0./lYLfXYuJ','user','ak_ce69b3e6b253de3f','2023-05-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$N5LiROcmI2dOMQpVW181Zaz6WF/5H.vC8j68pY66jMdtbcJSPzL0k','admin','ak_8a19e3031a4330e2','2023-01-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$3yWVzd5oLSVk37HQFnykMjjLyypBZroCl7hSFKfmjMA8ePQC/inxj','user','ak_c22288692a2404b9','2023-12-15 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$ofl/8xDbHzICks2eT.TEMgRoAOMnSwoXHM4jGSp/0V72ZakmweHoT','admin','ak_28c65f6bb39d831c','2023-09-18 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$8TaFd/N/gh9sNzA1TlkSTzAv9OcPff61l9nO6WKq0JpPxujqaS8xx','user','ak_ef44c5826ffdf404','2023-10-08 10:10: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=49310;

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


