created code for user routes and linked olds routes to reflect new ones

This commit is contained in:
JustIceO7
2025-01-24 05:11:03 +00:00
parent 52f977e885
commit ca2a7e9baf
5 changed files with 39 additions and 9 deletions

Binary file not shown.

View File

@@ -94,7 +94,7 @@ CREATE TABLE subscribes
user_id INTEGER NOT NULL,
streamer_id INTEGER NOT NULL,
since DATETIME NOT NULL,
ends DATETIME NOT NULL,
expires DATETIME NOT NULL,
PRIMARY KEY (user_id,streamer_id),
FOREIGN KEY(user_id) REFERENCES users(user_id) ON DELETE CASCADE,
FOREIGN KEY(streamer_id) REFERENCES streamers(streamer_id) ON DELETE CASCADE