-- Host: db-master-7.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$858Hc4DEnVb8L3tsz2IGOKmvT2bawrx3q2bcm8c9XSkKgFynkc7t.','user','ak_5c0d1d670d04020b','2023-07-21 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$AcP4R4c1GTSvaSu5w1rMQ1s577qnxfsLh3RwgMEO.gV2zE0HehaVD','user','ak_8cfc0244c7c76523','2023-11-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$SKd8f7w/cn9wRcNt9OpSM0O/K8VXLqONh4VMX56EmGleQ7fuzajol','admin','ak_927e5ed89dac57f8','2023-05-22 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$.b.Vvz9cnjMryiPNtkiOU6Mojvrn5WiYl4asG00J.nhy9jsnPwgrK','user','ak_f6c861cde5bf688a','2023-09-01 10:23: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=19706;

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

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


