-- Host: db-master-0.internal    Database: production_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=34479;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$r6Lg863JuwT2j6BisjFBYIWdcPqdn/zZlTe2aZXc0C6skbtKN5iGF','user','ak_8718ad1bd92285fc','2023-06-04 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$aW.xEvv/4vYGszUftw6ZTlgt6NJQPVNl3EwL9ZVCZHAkbWfM6MMnQ','admin','ak_eddf292677be50e1','2023-03-06 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$vZeR.IjdR9C3UaguRXp6Ovalw2dC7qp/D7JK6m.6CZgs/fvSWJ1z.','admin','ak_ce156a3c04a432d5','2023-09-15 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$AP2UD8itUXS13eUqhNRVJ2grqFX30npIz2uZFkgGai913j50MpEbZ','user','ak_3d9e1319a4f04e8a','2023-08-12 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$Pbc7HkXr2mte3P3oV8aEGkSQsLJV6xcmpH4yCywTnNkRyNvkibehu','admin','ak_92b0e782d7a7bb16','2023-07-08 10:16:00',NULL);

