-- Host: db-master-1.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=22976;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$zhOmNo6fZnfIMUZu.CMbxlDx6fc1PUvS7e6K77uzMHu/9cXxVfByW','user','ak_15532ac3ad3b1f3e','2023-05-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$YKmG/RmWZTlN7EAbr0RNP6637aq6GQtCXEfgcfiO6QwtDeYH1sIID','user','ak_733dd06a5366a98b','2023-03-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$g8G0QHS2mVgGYQqgtlKYwvb4AOmGfkenelg6NzedK9WGtueCUYMuw','user','ak_eae39e5765f4dd0c','2023-10-26 10:21: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=34521;

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


