-- Host: db-master-1.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=10917;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$y5GUnIhLbkVh9Hp/lsIz12U.0PML5S32ZFnNq4ej5FdZLu2PHNLFJ','user','ak_7daeccb6c8d1535e','2023-03-01 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$lbMRRhW2WI5Y3lCoo.MECE0trVlqck2qPbwD2dMKPFutgqPn54ZLC','user','ak_e991b596e950eae8','2023-05-08 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$Zd5KoeHNFK8Iewyv6B/jt7fGVL8XmSyaixR6tKhbpPSL4HXX40fbw','user','ak_8cadcd3a68808b5c','2023-06-20 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$t746aLTMncwT0dh4g0EZZ5fcESJgTNNaqxN06kqEWAlBPg5iY.mfI','user','ak_d81aca58c4bcf547','2023-11-25 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$xx2B4fzPDh/gnJMW7TaftFxXLZGq/dJF.ega.o/dQT.4b7X3rkoDt','user','ak_ff4475f343e5df54','2023-08-20 10:03:00',NULL);

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

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


