-- Host: db-master-3.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=7537;

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$J/8s6/tDK0RkiCqgEGipxANY9FK5ULfqL.R0O957mAxt3C2CsByvK','user','ak_c4ecc7f0c00a6740','2023-02-21 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$/osAIRSXtUG.C/JUkglcjQNZx11Ao.scakk0ynb357oogHyqlWpBa','user','ak_0776ea716394d3c3','2023-03-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$aaf9Wscfv676Xqko7dwNyPAitcBn8eY.vzbjLagsEYOkYE50.gDjz','admin','ak_7fc880461f209a8b','2023-09-16 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$zqigh95tKPyEKD3pdr5rKukWQNrTN9Vj0iKvySNixPeW8fAZwTZm4','user','ak_67966ef195004448','2023-10-23 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$GlcJDxfpdLP0iC5jPjM90ReFSSWOrb.HJFyC0BeJvjfWRpz5i7UKG','user','ak_9dfdd68717394896','2023-01-18 10:06:00',NULL);

