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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$0cY4KJUB5h26wd29lhU3FOh2ZKzV8o0LZKz9gDB0tn.CYQDsIuD1m','user','ak_d177c33eb1217ec1','2023-10-04 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$ICENlCmBlwaWgttiA8QGbd7nLaqSw8as.CZcN.b5LV9udt4fx0skT','user','ak_83bdf5121e958884','2023-11-25 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$8HZ8COJKMPEV68M1UtavCFN3VJA4FDOUF.dONzmZrvL3Ju9sfRqOU','admin','ak_ed67479eaa250a8d','2023-04-01 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$3NxDQQaBorkC53cSqwXi91FdeC2ki8Ed5qzuGLWrEBcEzMCcgN.As','admin','ak_f80667e9406a5d48','2023-12-03 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$o3vFrSlrPj1Kfo40Ne70sjYMt/hPQtvetaqyqwhH07x0gSklyZq21','user','ak_51f9b3ede9a1b90a','2023-11-07 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$KPrQZCptj6qPEQUDfwRAMmK/fBGt0Yd18Pg18m0BoOCsabUcKY8b3','admin','ak_0cda1c22532e9c7b','2023-02-07 10:03: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=31385;

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

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


