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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$31rnN.A8/I4zit1lWPWJgjvMvtrGBE3N6gR31VTagR4qpumR6GK.E','user','ak_daf35bcf4f862a99','2023-06-07 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$rxFMYcy9IAU9KQXM8x3DDOhOJjr/9m7lK4wrihSnoYPDlZIMaTo0X','user','ak_fd15bc546c004ced','2023-02-09 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$QdAcd9ywI7lVPZCsMhddPVJp0cbGqoOqmjOA7hPxlatwppHXwH/1T','admin','ak_c86c602843068d82','2023-02-11 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$FL5l09uTnpJJExIVc.h5Z0pBxxf.byfWXraM6vpLcpDcTSgoqcHgG','admin','ak_3f5007099af4d3dc','2023-07-27 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=15343;

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


