-- Host: db-master-2.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$GWaPIGX5E0Umxb6ysumRfodsStk4Uc5ZLFKGITF/46hBzu45v7mDs','admin','ak_9e27bd364bef3575','2023-07-26 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$agqBgQ9frFZIh14ZR7HvpanGJRLqwB8ZK7Q2to5qZSiouYn05ZEbR','user','ak_63779793c12ea14f','2023-09-20 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$4DGzzq6mmpJD6Pu/vCNUZpCKspOyGIGsM9jXWT.e3zzW0eOW5SmCi','user','ak_1905e55074e8d00c','2023-07-24 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$R4Vpor7w1zIVR6O/cN0bVip1cdN4t6RHMTLS/miveHHkmfSDFAkNL','user','ak_d73357b3cca7670c','2023-07-06 10:11: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=8581;

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


