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


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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$tDmY6e.gGGN3VBPnywA6QBnDFLJrDN2Bof2XqHbhgovKcHV7/bqIw','user','ak_5ca8307abd2f4291','2023-09-07 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$YmcZ2LafP2tCPH0TbVaFJBoIJXFw3W9E6/fA3qWq50QQU.LYPXuvH','admin','ak_e20a7794766e9a33','2023-12-09 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$xQPy/lbnNqdtcBLbEUvcA3Y3zACeCWinNAk06Khv0SH1pp1P/TcGH','admin','ak_03dd8b936f65ea55','2023-07-02 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$odm1Gc18HQyMZ.mr0xZncHRhs0bDLSeEzxxrp1ydG2yykOYq7mCfo','admin','ak_02ee48b6d1f957d8','2023-05-08 10:17:00',NULL);

