-- Host: db-master-8.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=47692;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$qwSmBhiQj0zASKKp.KzVuEold15u7uZfizHmqdpHAXS8AyU46c.mt','admin','ak_140a7bd6be462b8b','2023-09-21 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$nNLGQSKL/S2vIwWRXdT79RZ7.mUnkn/ukMgPO1S3qVDa3uz4l7h8k','user','ak_5bf8357faea5b704','2023-04-23 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$5A6BSLERxl.I2OmCNiQCrJxE33bTXflKZSmIPZY8Y5RZcspSU8.jC','user','ak_52b814b173ab5e98','2023-03-16 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$H5BANRvZbiMBrfHJrOChek2WZLI/1jpF7KwK/RMZCchcsoB3EEpNv','user','ak_40548c2946bd1484','2023-12-17 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$teeb3SHGlPv6Jg/7nLmhyL83og8QRjMljWWFMcwwsuOfKyOgyRcdA','user','ak_bfb3f5797db5dff0','2023-09-25 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$1JL4xDJrv.SE7TqywrWCUXEh0yPPA843JOYOeQltwpXyAGx4gRkkC','admin','ak_ef3ca9cdbf02cb9f','2023-07-01 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@internal.io','$2b$12$MyC6Qk1ScQlDQpV5ZCs4gwh2OCEAw6vvA60FQ17knDO0LiwMs6Clb','admin','ak_0220d34086f1b785','2023-03-26 10:14: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=13696;

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


