-- Host: db-master-9.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$IBCogEX0UEMtOdCb28prZW6.MowF6Og91qM5KmB.NE/KWPGi6tJ0r','user','ak_2970759a731ff501','2023-11-27 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$V3i.nko5GSrPrnm.1CrYoXhe.4CEPFTc2Pg.WTVbpQwD6pIo4stk/','user','ak_7d764121f6b87fea','2023-05-06 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$2aI7i5kBbZ2SxaoKa2aLnNeNVe0I17Sjq0a5B.RjT6OaJ2uxEfjGN','user','ak_2c690b19cc35bf99','2023-04-27 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Y1516Xmu9JI9MVrZm4WWb.dXPzRRvRBDZC58JuXzPy9BWAHotGnDb','user','ak_7a91ea68f5424304','2023-01-28 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$z4bYaXD2DJt4jobkgWpwNQzfJybcTxXh2sYEZltlyM2j.8lKG/4L.','user','ak_42eb7751507c1803','2023-01-02 10:05: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=5363;

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

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


