-- Host: db-master-0.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=1149;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$HWv8XRC.1cdFlwv0lLFXg.vFZEbgIZXqjHlt08ISWz4UHslQp.ZC8','user','ak_8edbf596754d919a','2023-08-02 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$3gH.m41VDEWCCB1az.7XuWEk7LJKPPu89/qrcfKomo2PLexartl8l','admin','ak_b98cbfd47a9b2e10','2023-09-17 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$jU2ze.8tTsD0wKu.SuXj1n2JGXi7M.3ShFaAVd.DoAtQc.x13r3oW','user','ak_023a8750574cfb8c','2023-10-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$c4xYOzDHekN10lmFrgFZSMhlz68O7W1YFKyvoCLgtHD8oHzdJBCDd','admin','ak_92b5ab96bf5383b1','2023-11-23 10:22: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=28445;

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

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


