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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$YR60ntl5j3Hg9G2PBdfZ10rfaOLCQXfNbzVJ9mLB6gDlrRx7w3fmq','user','ak_f11478c204e61fd1','2023-01-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$4edqB.k.UXiBUM4wz3v0uyZ9FuvDkLl88kQXjWQMtNUk4.n3rgXoF','user','ak_9ffc42495bf32af5','2023-03-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$gwyAPh5dzDCLpL0wEmdG52OwrsB3AZtRVuDVLMEi07OeumP8R7YHc','user','ak_af7eed7fdf9a20e2','2023-06-11 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$hP6Ht527n0K7osiaNSZ5MWjIylVUGQijOrPOS2ADtp8QdCL2cgF4R','admin','ak_be08f887412b36d0','2023-07-26 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$50.26oqyk9rE7eBgRjl3g92AJaWEwYszCpH1b2LHECwVm.oz.6vzj','user','ak_e66a24e1e14629a8','2023-07-14 10:07:00',NULL);

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

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

--
-- Dumping data for table `sessions`
--


