-- Host: db-master-4.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$wZQpthRwoUksmvc7elJ0akKnzJtAVz8ZdoZ5sX0TxssUwWpCYldFA','user','ak_55cc73d7f6795326','2023-11-04 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$qpxFiXUfqjDiurK07FoXjeEwv.DLmsifh5a7W6EcHWlohtpBag.6E','admin','ak_6b884bcb25d85f32','2023-10-25 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$QbXDWw4GL2GK6FgRRhUsNze8dWBSykGzeMJ0npizqfTalC/oGLvwK','admin','ak_8265e52f44a777ee','2023-01-08 10:18:00',NULL);

