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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$2YmkeJy/BZi.8zS6YmFLflgwVvid2TIFrxkQg/WZhGVkDnxBSnnnk','user','ak_def7de22644f40ae','2023-08-17 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$RFCTd6Rqexnqgn4TtC8tD9sMT/xxakfTyOlcEnLERuMqj/2EOt0pT','user','ak_1b454eab1dda6bbe','2023-01-20 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$GNozrsJd/dgXrrF.m4oFrwAWdGnAgd24YepU2qXB3Aiav2pLK7PPD','user','ak_e1e2d2024676530e','2023-02-03 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$0xl0BpmPBwFDvOfH6jSSADn9arCbcWNCG0rtX7sUvxmlOTIyN9IsF','user','ak_a0be752b23d6c5a0','2023-04-17 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$Ac1fUE1izJvI2zIuJwHKWr5GbOIiqtnGOyqm5khWLNKGy09acwYmi','user','ak_5e4840939f3715a0','2023-11-25 10:07:00',NULL);

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

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

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


