-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates UI; Updates API calls
- Loading branch information
Showing
15 changed files
with
515 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = | ||
'DROP TABLE IF EXISTS `client_torrents`; \ | ||
CREATE TABLE `client_torrents` ( \ | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, \ | ||
`client_id` bigint(20) unsigned NOT NULL, \ | ||
`torrent_id` bigint(20) unsigned NOT NULL, \ | ||
PRIMARY KEY (`id`), \ | ||
KEY `client_torrents_client_id_index` (`client_id`), \ | ||
KEY `client_torrents_torrent_id_index` (`torrent_id`), \ | ||
UNIQUE KEY (`client_id`, `torrent_id`), \ | ||
CONSTRAINT `client_torrents_ibfk_1` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE, \ | ||
CONSTRAINT `client_torrents_ibfk_2` FOREIGN KEY (`torrent_id`) REFERENCES `torrents` (`id`) ON DELETE CASCADE \ | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
module.exports = | ||
"DROP TABLE IF EXISTS `torrents`; \ | ||
'DROP TABLE IF EXISTS `torrents`; \ | ||
CREATE TABLE `torrents` ( \ | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, \ | ||
`name` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL, \ | ||
`hash` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL, \ | ||
`active` tinyint(1) DEFAULT '0', \ | ||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, \ | ||
PRIMARY KEY (`id`) \ | ||
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;" | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.