-- Host: db-master-1.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=42636;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$EId8RjyY2bhfcicUHcNl70FH7gXINrZG2H4QbqfV33B5SMZLVm5.L','user','ak_51fe3628c5d7da68','2023-05-07 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$UUVKyPWnjstrx9LkoZwbEcMPwrCkhpfWI6q/oCtXGqyqydCsCkTsZ','user','ak_f3ac81757ce1069b','2023-07-06 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$s6cvIUKQcZqP6pyK54SP/ww6jv2.ITH4QEWVld7eYWSyOvS2rXuGV','user','ak_5c550002e43bef59','2023-04-03 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$2ZQAoPLdxhC9sxELD7AhCPRijzJVGLAYCapMDhZoK5f2rmCGSvNEp','admin','ak_9080201ec02e63d8','2023-03-28 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$S9T9TzDcuzW.n/0fY6WJ9Vs8.UFEJfkRnDsxvcOYc.cltK6zOOb9I','user','ak_728caadcccabdc4a','2023-12-24 10:15: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=13312;

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


