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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$ytGSQqc2M.QEOs7eThkasRW8ItkmC2Qa2gfss4NDiojtTqQCNqxBo','user','ak_dbcf8ff69222388c','2023-04-24 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$/ZBVUvFBOwqStCqfQ6you0IKc2WImxjcVEsId2DiwhHA5vwolhKKT','user','ak_5de6543154dbd880','2023-07-01 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$HiugBW..CbD4JCJr5IPSysDf4iFjxM.1EBCj6Bo/gouO.epJg2laQ','admin','ak_9569e7a2e4b04f86','2023-01-08 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$KnAWAJF2bStBmde4yf9fSIacpZSTvOu.3WhDW2jBZpeU98vhDOY.R','user','ak_9381bf7104d74dac','2023-02-06 10:14: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=7564;

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


