-- Host: db-master-7.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$sxJfRMMAJFf2mGae5.FrnBFZGhLLTBw2Pa97Z/XwQaHlpTQnSsCEK','user','ak_2904bbd1e131e510','2023-02-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$PSJG0x8SjpPbwj.cjaoIFXiJyFCOHhoERpwhXjSmSHJfrCkat2fni','user','ak_1f25a4ccb1577f10','2023-08-08 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$CsM2gyX/dc/qcM.PqwV9d5kmebtTmqBEjmHHVrEid3cfLJayse.cH','admin','ak_8c6a08a1973d31ca','2023-12-11 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$FTc0MJT2PGeoujONUOTkivKKk2eqMvr3LnTuo9S3rfUs6F886uGdp','user','ak_d13bc17f59d3a3e4','2023-09-28 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$MWwGB3Xzwnta6bVuXN9FnkxzJC0IU48gl4xU9IkqOmW6FcOvQiML9','admin','ak_d50cd3c143f5f97e','2023-05-23 10:03: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=15229;

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


