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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$CZsdWts.8mxd94J6ytfHTQxB74pX536ixNzb/nlv/.JHwfY3LPci4','admin','ak_62b69303d5b5f1c8','2023-02-12 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Gu.J5d.ABPHe5lDRbY8SoWDUQeRhPgNM0n3hKw.CVUw8WZhuO34i3','user','ak_6374290df52b285f','2023-07-13 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$WXFsdC9FIqJ8LOuD/sEmf5axFES6FHCfq6qsQOa5ke3YVh24KF2aS','admin','ak_2bc12405c2e9ce7c','2023-12-17 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$v5vOUTcXiCiPnTuev.0pn6wlBn6luONzDXP/J1bUcnn5v2KwUy8Yo','user','ak_dba9eb13924a86d4','2023-04-23 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$CkfFjIH5OTsn8svJpAeBFt9P.FYbJ6./hgDXHN5hMgdpytBNjQC9k','user','ak_6a04b0dd5ea599fb','2023-10-24 10:15: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=6990;

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

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


