-- Host: db-master-9.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=4350;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$LaYF0Q5jEwDJD5ZX4.rhyJUKZyaAKbWI9kg.qzQHSRslO3JLdt3OK','user','ak_d0ba43864b449064','2023-10-09 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$ofm4ObKz83921cD1iYqbS.Vbk160zpeHjdaV5UwpAk265SeQMPRfC','admin','ak_85af0754ef15afb1','2023-03-11 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$tcnPUl1/U/ADq176wZkzm.rZ/8Sqa2OddXzr57mcMKFbPjk4qBvKh','user','ak_e6bfa249a0479bec','2023-05-27 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$rk06G86V2gHpC1Y5E0CKg1SwZXF9GhtY1TjefnnV67I48XXsjORty','user','ak_d5d72b8fa2fbe849','2023-09-24 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$0bkLNOUSh/KlVVKvA0/jIwhvqsxz1fHIu4zcZowotCPZfk.PeMSMY','admin','ak_a79275405baefd17','2023-07-01 10:18:00',NULL);

