-- Host: db-master-3.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=31319;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$RtBMN8JNnqbkXcRKXyv8gwMRjlyBTWN.rweJ4L6K9o7sTXO.1Vr5l','user','ak_28cd5860bd91d1ff','2023-07-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Ik2Jrc4kWjQQ8MO37MsF1SUFAUxCe3b2teqUFZFICDc4wcJAp0Vi1','admin','ak_7009312d45ba718b','2023-03-04 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$kkedr8r9yepX/4B470sj1SVIIax/N8GWV.icjD/9xNtyeaCtEpbX/','user','ak_450bf8c4af5ecf13','2023-12-14 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$szxZiYW4BGNlrdyOK3mk.4va8guxF1FBRgqxWPNxC/QVaviwU46lh','user','ak_ff158030d91949f0','2023-12-13 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$9cgm6W84tBXLA19XtD8gNhiv0imC0ilPzOdi/luMB6E3fP/Y5TEpk','user','ak_4e07f78073e11c7b','2023-08-18 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$70tp.P8BCya80taVPmaoDdjTO.HOAgDxBg8fjTOwSZeFyE6e8lO17','user','ak_b1ce5c494662a9c1','2023-08-12 10:23: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=10744;

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

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


