-- Host: db-master-0.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=9762;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$Li6o4wbFZ2TDh.rVu6eli5t/eZkbEH17eXTr03ESAeeGbkytsolO3','user','ak_7fb3e72dbd5e9482','2023-11-04 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$IG.ibONArLdjqHJ9TyZqHunKoJhTk0qH10Ydu38rmw1VWUN91ePgd','user','ak_26f75242cbc6af67','2023-02-06 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$xLQlHYngcVa.Bff6Fy5nqu8mD9WeJ/VwGEkixsMgAQ1HWztP7Nqm9','user','ak_99916e7a52c42d3c','2023-11-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$6CqMlUrn3o9d8LAJFBHtWd7Zy8bpcfnR9tTi65yr1xpeDXYJYtWnm','user','ak_b08b83256013a6c6','2023-02-05 10:01:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=36434;

--
-- Dumping data for table `sessions`
--


