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


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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$yamQrX/LjRP5F7QMckb1EDNb49Opyvn7nPROBO8RU/1lNurOLNQyA','user','ak_efdf8fe754cc3239','2023-04-02 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$b5L/CEdsQ7ijCXdnGl7ZhMZEHJIfyMw5uK3EPQjlQvZSL143UiDYL','admin','ak_ee130c5cd49e3cb3','2023-04-28 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$vidFq9VG34Iw0ukbSLUdbTS0.g.r2UlEsydJqco6hdYpIgg5p224E','user','ak_68e1110825aed6b7','2023-01-13 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$vmJSlGz9rsdHZe4OuhUNP0RaDO9cvfnXDvnixi2AsbD/OXXgTtimu','user','ak_79f6d61f216ab809','2023-11-15 10:18:00',NULL);

