-- Host: db-master-6.internal    Database: customers


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$dmEpl1cFQkExMCSd4A.G90nWAYsTaPsUeiIOcRsb.GrFiwd0WZvIQ','user','ak_985a3e686b4d8594','2023-05-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$dD7eJWOrUbWN4Hmbj2WMqv38javvNlt3Ue/53Km0G3BdLWaHMdbno','user','ak_fb3274fee4c80ab9','2023-07-05 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$PVRzwfktHSB1TDAO0iJP5/11i3ER1m8TiYOWr6DquGsHoxIRO4kjo','admin','ak_ff6f853073e93013','2023-01-22 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$EJufjYaQEnW44EizgwMCnSxB9f3tcPyWnBvK7MlYOuJ1EbLHlgr8S','user','ak_1618edf0aa76e314','2023-05-28 10:06:00',NULL);

