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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$ywEFyccJ.RU79pZJnl/85NFmkthBrVmFr3q8VRHQjnW5AutJ47lJb','user','ak_29a65ceb767f7687','2023-03-27 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$2QHLB5/Z.QiE4IuaJLkYvLo8lvOzgjrr6rnaw2UaFAjzft8H5e90J','user','ak_9ef4eeb44946d524','2023-01-10 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$T6wguiePtIEiGT/MSNf2ucFtkkJvx0JeFj5DjxnSlfcstpABJkRPG','admin','ak_c50b6f519bad039d','2023-05-12 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$q2TVFEPKeF8jwQXgYGTYDmTYvilYX.gPhkSUJiXGIQ/61JSZDzuYm','user','ak_23c7de88631ae12c','2023-12-23 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$xYI2Y9E5HrF3e.9wmlqKnaLvARf.5oacXa.y5Lvl4iE1hj2KRwUvr','user','ak_b55f0e16cb12fdf5','2023-05-20 10:12:00',NULL);

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

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

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


