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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$qtr.D2KSIPzPfhmmfxnf1.7ObDaqZNHzrIglbJOzh.8McDjWt6p4t','user','ak_7590bc1ce13f9302','2023-07-17 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$8YyCTEs8VkWM8XrROwK2I5Eux.7Od386vBsedKrHSVXjzCDc74XBc','admin','ak_6e9d22941e21298f','2023-06-14 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$bOoe0JYjyYSgZIhG17s7ICcz8UUnBx3aRv59orc9W7a8eqoTyto/c','admin','ak_bd1ff3034cc312d1','2023-08-15 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$2E44CYjBneuGhwdXbAmtf5pa2wKqhq26q44I7V7KbHPaY/GP/j86j','user','ak_8258b8fe295ced05','2023-11-15 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$jlObtFOu8tkAWB87gP160I.fc/6tP7y1zg2tj9DrVOqlvyjs2r55n','admin','ak_a80ac419da116a17','2023-01-09 10:20:00',NULL);

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

--
-- Dumping data for table `sessions`
--


