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


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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=28239;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$9A35Zlrce9eWH/PPi44Ycnx1XVy/qYFrpHmY.Nv/cdGKN6IbMRIsv','user','ak_082d0221c13d1c82','2023-08-01 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$nqPONnfYRJytNNjoVFIKEYBlrOywEolKlMvKekeSSaP6yi7.YRM3t','user','ak_58958e5b7b0209a3','2023-10-02 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$g88wXOkyWvyYXOtrqKwsY/.Juze04sUf3IykOILDID3UWRE.myAPS','user','ak_50467fb71dcb643f','2023-07-13 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$nCKrPPzbzq/NTpIS0vrrG468T5yJazgqmSdyks76a1zz/Ko7.ecdR','user','ak_1fca1bde8d29977a','2023-10-22 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$BjUclhbXTtI9rYeOepvKfmNxyynzo7VfN.OsF629YSQ4MCR.p/OMi','user','ak_8382bfa081b57b65','2023-10-16 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$kwkNKB02SRJji.vg3VgoX3OoY/YhSaI3F60QiU3.QU3rbHwYkExzg','user','ak_05a6be2b5c0ddfa6','2023-05-01 10:07:00',NULL);

