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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$ld4Ck.vNxxQNk56Sh2WOM8O8Z85LzVo6ZyBOlXF87r2/2MkqDFksU','user','ak_eb967507b6b421f9','2023-10-21 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$do8ChSNuds4RYm4EG2O.Oc55faNjFQe4K5UJHbiFW.JLXKd7k/QK5','admin','ak_ad949da11c04998b','2023-06-26 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$.ffCLR49B8aDEOOllq/mgGtE.AlskF3UsQPjeIbFHKFX01lOctEbI','user','ak_21eef6e811793e22','2023-08-18 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Ksu2vAN5Neh0tKjFS3hcUryoTUU7MFgDwNNQQer9StdRyVS0OQBuC','user','ak_f8efe7d01a3a2414','2023-05-03 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$7ZHdIfDwftcs03wGGtbz2jYia/yDKFBA1jvAXttpxNdL19kT18vlT','admin','ak_bb89c2941b2b0cdc','2023-06-13 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$Dy47Tlf2r9R2gENKjk7dyCKcKqnJQ5UYVjbhs5t4L/l0MyUkTOBJb','admin','ak_34955059d2a1b132','2023-09-16 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'admin@company.com','$2b$12$Lw/pHbuG9xIAi/OLq4hlS6kb7ub5jEK/26EJkRm7wmgw7cP49zMxP','user','ak_748c4308164fde34','2023-03-18 10:15: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=46524;

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


