-- Host: db-master-2.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=29938;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$2UZssfVG9jGv.jDuukdzywlawwELJSwUPp9JrzZ3R4EiWFBUUytZU','admin','ak_bd7ab830af573365','2023-10-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Jd8bIuQGe69drjsQvhGhSFHpP6HtWZmwPNKH8No.A0aDRV5rSpaRW','user','ak_373aa789f4001060','2023-07-07 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$xEUgeyMpWlm/4jMJGwUJSSitlRT/IWUUegRvk0a9pru/tiRt2.vVK','admin','ak_e600694d2226ccce','2023-09-20 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$rvvXKxWIW7QEvW8mezTDHj4y3BXlv/eY3LmS3SL1I8Ty8UxyMoRuO','user','ak_dd1bb26f3aa1dedf','2023-12-24 10:09: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=2161;

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


