-- Host: db-master-6.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=3381;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$9LTOuZQPDaUZJaUtHh7yFDwbvf/X1N6vm4hVoMcYhTLoWKY7J/kkG','admin','ak_80b291434d5825ec','2023-09-25 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$UWYCSA7xLBVStB4s.W54rBu.95toDx9QAV1.7.ywxnt2VT5mQFxWh','user','ak_2a8662612ec32210','2023-04-11 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$fCHz.ZH0QuqFrighFtMspwODNT7OvZD1GoRMVd1zyVsmoEtWipL5d','user','ak_53a1cefc2acc459d','2023-03-07 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$HvyiYhHgxoujSJxQF195IP3WfY3NO6Wkd3Dkrk4rxMHZV1c0kbM/5','admin','ak_0e802f3fd77e0d45','2023-01-08 10:23:00',NULL);

