-- Host: db-master-5.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$8w7DlMwiWH3pxaNTO7tE9C8NVoeSCxxDYBH9p06tVVoPkidLCd9BD','user','ak_af227ba3cbaa05c4','2023-02-25 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$WR.Pt/KNKI5yWLGaIFzd7mD0vou7rZrjLtBPz6vGkmLcdo6I9Wwcb','admin','ak_9f65c4c0c7f21299','2023-03-01 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$.QoGRi7ruxq3sD/H4BaaDwGg.ePF0BuYNWynRjDDZC37R.ORTgzHY','user','ak_df95f2494dc1dc6a','2023-01-13 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$YFEcV1GP8tt4y0LKMawGds/hdkuWRDLvIJ80Hk3BuJEzLrhfbwp8y','admin','ak_df2d2ee7d4e8ba2b','2023-06-25 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$WIiPbmeN4dm8Shv6S4VBvFWeHoM4wENqMg9zlJ03n6GYArHrVBee4','user','ak_f5ffa71beec701d0','2023-06-04 10:13: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=31896;

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


