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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$t8tZB.0Ty3LCiaw1Kz4oj72XyDKuAg6AJuxuBE8It9749EuV27urE','admin','ak_e7e4d6c27eaf1d0c','2023-03-17 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$nhEysv26kRxh2QtjJY2vGzzFmV91pZeyZJISyVnSUPKeSribXdLYU','user','ak_b2971b9889710381','2023-07-16 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Ycw5kGUsHjdPPMAfWcTvhTmLVjThZPrJLlgzXLxemwOW/dmEyVpsr','admin','ak_6a51f093569152d8','2023-10-17 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$HaqsypVjPCqsjub3sjt5rY3sTG/4/lS83eFISy4ho1O5U4J0blyKM','user','ak_8773267a954576bb','2023-01-04 10:14:00',NULL);

