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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$Tkqrhce5.hu4ax.q.WXHJKhqKyLykimHNqc2iVFlYuTVn39adAfKd','user','ak_847849b6c40bdc24','2023-08-26 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$zcleLSXOM5gmvppQ7YITqtr3DKz4VuA7dEw9VH2rOFpkHxk4Y/W8K','user','ak_b3724333aac1372d','2023-01-02 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$q96.Fdt7FxxaoZEGFAbYAlhOCePNmW0ObbM1CKBbewS9buPR6j5PQ','user','ak_7bd6ba577274b2df','2023-07-05 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$usH2pClU3Tz1vME2YxDUvhBSRrTDSZskHe/gXodkk4N2VD6aMnHfH','admin','ak_2674b8b9e6029c02','2023-05-13 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$amQAeyUZ8rJT97kwfCkZHJpkmR01eRF1VxLLQilAH.wuY2FTS80yd','admin','ak_e72c4e42058a7474','2023-01-22 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$DZx6z3G6P4n2dw0EhZXJODxVzDkhaCUvs/UcnUmLrhiYqHNc7kbTg','user','ak_674b04f247c9b772','2023-08-04 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=30969;

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


