-- Host: db-master-2.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=9799;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$a7Ndruyf80cLsqfx/q6OOI23Xf9gcKTIpkJiM.l4fKoU3pirBEKfD','admin','ak_eb1626b39ad0fbdf','2023-02-23 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$ik3G7Ois4kg./fOTdqH8UJCd9OmFSh.oJLGe1A46q5Z6VQvJIoCoV','user','ak_b9553cc496a7193f','2023-09-01 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$hEd0LI.1MuuoI70PTpA/E1H1wYHStsDZ/Wh3iyDu/wdiwWn4FBscw','admin','ak_f4947812bdfada47','2023-06-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$RMLFUa6N29iq8Cnard4v7AR5pJV9sQbzBnvbKM52x2tnqzYMpz9Nu','user','ak_ec2ddf382ca1b911','2023-02-12 10:00: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=39748;

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


