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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$6qPjRY.92lib/FwVHzmhfX70z/dqSiS.UOl8MnmI8.F.nDt7rycSd','admin','ak_0a2d3eb415b95036','2023-04-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$tBFy9FJn.2E/ERsiz0R9u/FA7.AzfabRGdUzPGCv3wxOhcIEXIhyb','user','ak_ab10e81740894aaa','2023-11-26 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$DC8SQpNH1f9qPmw4SETwn7g4styjqSv0gosrU4.RoVeQhss9VxCvj','user','ak_951a96e31f689c3b','2023-03-19 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$rgyzOc8iUCA4wiC0kMcqliY2SsLbT9RYmG8RdziFGfZDwuhn1zN42','user','ak_da347c8d98dfbb78','2023-03-21 10:07:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=13281;

--
-- Dumping data for table `audit_log`
--


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

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


