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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=30559;

--
-- Dumping data for table `payments`
--


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$khkstXc3YdoQURsiY2ONkqQEZcfw3/BzHkAqZG6Eg/mrdkz8pPFcb','admin','ak_137ef739ca0eaa82','2023-06-16 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$HHNMa9Rqd7S6x102/k7./ys1/LwNMs/P.EDJHuYWbxwEHnYgvyZka','user','ak_e51145368b502fb4','2023-02-28 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$USZCe6NkETM1Kxp8pLmDp1illVfL2FO9XRvTvucUnp0v58H1tWl6I','user','ak_0348288c949c0593','2023-08-24 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$akqufowfP4ymFqUDbrp4NmNTVPVXXGRtOqQ7eAHHK0zYvpl5ZrhbJ','user','ak_208e884c0827ec85','2023-01-02 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Y5a08ernBoW6hmljea6aCYLn2b9JOdI/RaAI9TFz3njb5y9b91ueK','user','ak_ed2b546e2916bf71','2023-09-02 10:15:00',NULL);

