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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$BJ/nU7m8ki1ednLs2rvyV.bfAklz9Y9y8LaJBSfpiDkh798A54r/k','admin','ak_3fa39769d04b2243','2023-09-15 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$wGWLtfNEldDZ.FULpEUbteTIHovVSVlNc.b56h0ill6gtgqyV0zi0','admin','ak_5d95a65a65de66a1','2023-04-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$8ms/kF7IevIbKmrRqDMt0wlhBTAQrwD74UobJfnTDieugjcDJL1.k','admin','ak_ee34d0004718e5e7','2023-04-26 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$M5pwLzs/foUqDmY2g4JAF4L6PMwXGNNWxzDfLn8HgsQ1WRUIS2btA','admin','ak_36422eca96f3f67d','2023-03-09 10:19: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=18169;

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


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

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


