-- Host: db-master-3.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=16640;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$qK8vAsl9QYN3jdEs0lUKWMUWXpBnV90NGrU0k.wfCIBB.XN726H3Q','user','ak_a372b1812898f3b7','2023-04-04 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$VEUfvLId2UrB7kZK6jYlEThvxqnUOCDH6r9TdQUkyJvPA1ffsN/Y0','user','ak_98e12e51cb7f7b6d','2023-09-19 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$B9Yj4lq3uoNgJC0vauzGS3A51oyyTvQi/.U5AP3BoAONbX9t41pi3','user','ak_b874b3c8269c5db4','2023-05-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$KELDRbjTh.Zix/zKFTdR4r7ELPeADvNJMvbeDHohxKqUzN9WgcrRG','user','ak_ecc901938c7ed866','2023-10-25 10:16:00',NULL);

