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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$GEU.53vYda4PBt/S8EccPVeoGu9Ammn3K92bx02.hz3YF/MqVSoH3','user','ak_e1932d3a312b7f53','2023-12-01 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ppfKTbdexzGxENHsJHN45QSKNoJgeNOu55vdlYa/3FDYXJgbptU1a','user','ak_6dc31614e50d6f98','2023-10-14 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$6xnRRgMOsMy1QZ8o67dOD.XYIdVxtgEDPUj/Ik8XeS4xiD7eHPqPq','user','ak_66d2c6b558adde45','2023-01-04 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$C8Gk6mNSRh0TlH0G8fN74wvaHTBmPz5CLBSWwg.GFBbIsgFbU7AL7','user','ak_3077bb28fceaf7a2','2023-05-03 10:09: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=24685;

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


