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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$YXvkYGfrvP3y0NkCmQmgstJzHi1Eh21oC2itkJXy1rN1zL9yDY7Gs','admin','ak_16f86d1c170ad82e','2023-06-22 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$/xlE7HzP87Ib/4wjJK4kla1ksxrSn/nw/M8SPSDpAkLmJzjmeInWi','user','ak_aeedeae8e79322cd','2023-11-18 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$9HcNjke4Gnh3PuY5IywSmk2oxGtahhCG.BzdeDI9kRXrCxsYloEGe','user','ak_86c127498bdc77d5','2023-11-18 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$pNGCaXEa6Bog/5kaXJ/2PeKGKGg7ZQe50POC248gSa./8I1f7oRnb','user','ak_f6f368382e9d7b31','2023-12-13 10:19:00',NULL);

