-- Host: db-master-8.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=11192;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$VpBGJdqLeqyV2vqdTrusOjQaEp5/HYFyOaoDRUsbxdGhJ/l0Lm29w','user','ak_84b2d509b3f60699','2023-01-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$ipAmK8T8Nnc5dBCPxJYUUAiBIJf0le6V5TO.n8sporlNpsfrY7Akk','admin','ak_e0f08641c7bc481c','2023-01-19 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$1h.SsBH.Dp3iiaBDsGY0iT6PRwcaXt7wjIa.VWkhErhQNA4Hnhlfs','user','ak_f9d7095fba185819','2023-11-23 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$MhRA2wya7ITYvTltrvoKMJOQOaJXbDHb6GHnRygWE2lZcQhcSL2e6','user','ak_3bf3b7cbe2298c36','2023-03-21 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$maAt/M8K1fPzMceGzR7JxmlceOSLXkti.pO6BTF0O.aUJBMCC6ULQ','user','ak_d0d0632ca7a6c5c5','2023-08-08 10:05: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=10795;

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

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


