-- Host: db-master-8.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=50100;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$6hUt2k1pY.j8T5Ywq5FWC8QQH179oN0owUq3vx56mINK.CTtSCRxb','user','ak_8e042c1905ec1327','2023-01-05 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$1ePviudfg1K6.lzJODcwHSQVggdDs7Czlozo9JV3E6DPm1LfvA5KE','user','ak_20b74d5781c1308e','2023-02-14 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$h7lG0pAFqK6H3cpOx2F2PzANkRDkg8dU/kKtjT2Bu/S1mFHklOjLJ','user','ak_f9ea21f385cd994d','2023-09-21 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$kvv4T8tYM3OakKf7/a1V.a.lCoM4drfYk7cax2w7U85.EWdr8VFye','user','ak_39f258029dd1172c','2023-06-04 10:19:00',NULL);

