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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$HDH0J9QL9zHi27tK78eubu9pJGlthyolyjshOE75LOO5IQyQ4eFks','user','ak_592d59260130a26c','2023-01-13 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$OvEDnarswRmgpY.oE4g9g55MesEkYbFZxIplq5SYBHha65Vw47M0l','admin','ak_f4e36c657a04ecb6','2023-11-25 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$8N89Q6AyxixlXT44OgMX8tswwA9mAqpDFxbZVpOGi3OhGWTz0ts52','user','ak_ce4d35fa6aa1bc5d','2023-09-01 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$jEZs2YyTzu.CvoFn7qBGFrrw/uT4gDCGw3yDuwRf.gd9vd9wvG5pE','user','ak_50a6fd4cc899c259','2023-05-08 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$Xy3xaRtcyfUD9avdCvEDO60eXXp7sz/5i.YZK2kGwmFjbW3QMSG/Q','admin','ak_1e478d58551fbf90','2023-06-27 10:22: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=43535;

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

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


