-- Host: db-master-2.internal    Database: main_app


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

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=34747;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$sj2fp4kE/FW2sRe0l0iPvGisUQkPltdzHdgO.4d6yyznrHf0yJg5o','admin','ak_256f78c5bb5f311a','2023-03-02 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$/6FAxCaIHW7T8G3Dy5ggJyn1bZ26d3WiA.dIl4rNcujMlcbuR/ktO','user','ak_7db137aa4c56c6e7','2023-12-05 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$MzaAGfkvolUYsSvumMFzh4VKukqc6fDFM1/lKMgMBCx2GvVF1J8kG','user','ak_8488cdb8c08e5c83','2023-06-23 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$rsFJ586XAXjYOgPDCEr5i9wqiVQolaipb8AvCsecWonxU5M4tfC4k','admin','ak_a9794885369f1533','2023-11-28 10:01:00',NULL);

