-- Host: db-master-7.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$BAZCo4Xokp3knjs5/mZoGOT381SBQqt7vu5h2hO240SacTCoFRMqS','admin','ak_7443de6a4b00e0ff','2023-06-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$jsOV.JEsouAPaK711f7nxzPQ78Gdwa.Q02Ia21Hb/cpMil4JZqaCn','admin','ak_68e3e5576f19a1ce','2023-06-27 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$YiPuqZCtV8mTPS0PF2eJoGXh2wy.Drwx1f1XZDdbExmxo7EAY2qlj','user','ak_5897fc6d47966181','2023-01-14 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$nA/xq57kpQTQ6plRxZaMkl3My8nChBnHKBQ9.25bVQ68fs8xywzCd','user','ak_17b57d643596107e','2023-05-01 10:22:00',NULL);

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

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


