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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$NfkWgUN8QFcYpr0acUksMER6qeQjNVm4uxseueEK/Hdq3HCfnfpua','admin','ak_da2352bab47f739e','2023-03-23 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$WoDaumeiJnyph/ZBGDX6JJK4HXTxGor..npTeqwEzWZXaxj9PVTvf','admin','ak_8cf7581c33e8cdaf','2023-03-09 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$qtk2ZpdgGpR/rYL/hEs0PDRldvdWrveb1L1tb2ZXXq2jL71WeTZ.T','admin','ak_46690dd9249222a9','2023-06-09 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$SDZrGZIJeEPUv3BIz7B5iDkM/ewYZU7CA1zA4bZNEJYYYBfx6Y6D7','admin','ak_1d0990f6e60cdea2','2023-04-21 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$ismOVN26eaDBuEmit3bNOwLM2lfwWMeU7zB7pTEyRVQHkSMuZavc8','user','ak_7a79c2414c66343f','2023-06-25 10:15: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=33610;

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

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


