-- Host: db-master-9.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=9316;

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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Cxg0K7MqYdH0JwO5ZYm3bTKPfHMtOMzE.U8lwQcqEp1fivpVtX1Vj','user','ak_33afc94c62143575','2023-11-16 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$c6grhJ9.1kNq0HDu5sBcRQzM9on8A5COoZcpr.eh10euaUHQCoFxc','admin','ak_1818a717ccda40d9','2023-10-16 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$107ZaWHQRM9/Z6PGAy4VG4bVyAtQCJ2C6cknQDRxm8MFQ2T.oLWKI','admin','ak_a9ed020974b96c0d','2023-09-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$u5r642XxqTxKUnCYH6CI8VQqYVhBloZIFQT/5yBTFP89fCvkABLJU','admin','ak_24239cb08b043e95','2023-12-14 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$W1AkurCEXzj4l0hgLXhQSaDWgKXn5Mxc3YjqZBKdYjs/.pCqZfQHK','user','ak_e102f5b7ab37bd56','2023-04-21 10:12:00',NULL);

