-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$OjBGvY9Di3eBhR.9o0tAP3hMd6dPf6aU1BUuQqG8YSui7yWjnokzL','user','ak_08a0c1b1021ea029','2023-07-27 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$aVISqX1csV6lhHPfUNxs9YWJ0ghq19wFCKUSZfGeLwPFeoPwdzC1I','user','ak_52144f5905e03e82','2023-11-20 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$YvOiMUIVIG8Ea6ZItWB5lbPdiowP21K4oSy0o81wHRgwEZ7PyGsdJ','user','ak_61acdd55e5ab711f','2023-06-12 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$S7LHMX.Gbp2mR56cVc.bhjQ1QEHvnU5x/XRwsYElR0GBv6Eb7hhaA','user','ak_96dc5400a28e15ae','2023-07-07 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$E7Mn5GNKi5xX636t7SnfGQVPUqijQegIuFldDkg6FlGER.DU9Kmfm','admin','ak_b78c9d2b585bab1a','2023-10-13 10:04: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=46997;

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

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


