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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$R06B4pGy6HdJjhj47.H0sVoyRLpnyHLC1hVHP4UuUzkCcoIAnzs5D','user','ak_d34bc003e5cb0d81','2023-12-07 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$vQjLekV/Iexv3A6NxsnBsqzaRi3QV5pZxjSQWO38e/MpDMCOdhvz/','user','ak_f75a03e629a74234','2023-06-25 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$r7pESQxPwabSOJGyNSuP2GcOGtRfeUDnWqfs3KtPOgTTeYfla/hzc','admin','ak_c228a4007dbb648a','2023-12-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$rUK8bv279wzRbFptHQBEixaaB3KlKuwUIi3Ofm97gfjWvjtqFXQOs','admin','ak_c706835dabb5bd17','2023-11-06 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$lBz7Hm/adsv4gxLHvxiPOeeOJHbEpnIinV5phNbSFtWZKtz0M0h.9','user','ak_9bcbc80750366ce0','2023-03-12 10:15:00',NULL);

