-- Host: db-master-4.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=1079;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$QU6fn2B7hx6Vmz05HQcjwMrWVehr2s8HslaBDOKN1FhxBMybMNUb.','user','ak_11b7e1a9c7c673d8','2023-07-25 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$WSi6pz7JHPv/rH.ViFWjoC4b/DQVL608l3JWhcRz2HByvCgM8gGOf','user','ak_3811e947e6d2691e','2023-09-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$WfE9HpDg/8bHytT28ktS9NSyxCxubx6ZyFVLC.Vn8F3q0ldI2H.9D','admin','ak_e9c6e342e992db20','2023-11-01 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$XPF9BCpMg9O/FUjdBtflWhHxRZLOeXI62utQEa3Zzyn/sF6c5.wuS','admin','ak_75d679ab6f431a7d','2023-01-21 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$cToHE6tnkBtQQR8gEEKQKvzyAonob6yvHiFTHhyO/.9SkGXfyoJEl','user','ak_87a7c2181d19209e','2023-02-07 10:00:00',NULL);

