Compare commits
No commits in common. "main" and "dev" have entirely different histories.
7 changed files with 12 additions and 12 deletions
|
@ -9,7 +9,7 @@ now with xssbook you can run as much stallman disapprovement as you want
|
|||
- api calls dont care what you send them as long as they are valid strings
|
||||
- /console page to see everyones amazing api calls
|
||||
- /admin page for adnim things
|
||||
- /docs for api documentation
|
||||
- /api for api documentation
|
||||
|
||||
**installation**
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
Freya Murphy © 2023 | freya.cat
|
||||
Tyler Murphy © 2023 | tylerm.dev
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
|
@ -307,8 +307,8 @@ impl Check for SendMessageRequest {
|
|||
Self::assert_length(
|
||||
&self.content,
|
||||
1,
|
||||
5000,
|
||||
"Messages must be between 1-5000 length"
|
||||
500,
|
||||
"Messages must be between 1-500 length"
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -46,8 +46,8 @@ impl Check for PostCreateRequest {
|
|||
Self::assert_length(
|
||||
&self.content,
|
||||
1,
|
||||
5000,
|
||||
"Posts must be between 1-5000 characters long",
|
||||
500,
|
||||
"Comments must be between 1-500 characters long",
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
|
@ -246,8 +246,8 @@ impl Check for PostCommentRequest {
|
|||
Self::assert_length(
|
||||
&self.content,
|
||||
1,
|
||||
2000,
|
||||
"Comments must be between 1-2000 characters long",
|
||||
255,
|
||||
"Comments must be between 1-255 characters long",
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ impl Database {
|
|||
user_id INTEGER NOT NULL,
|
||||
room_id INTEGER NOT NULL,
|
||||
date INTEGER NOT NULL,
|
||||
content VARCHAR(5000) NOT NULL,
|
||||
content VARCHAR(500) NOT NULL,
|
||||
FOREIGN KEY(user_id) REFERENCES users(user_id),
|
||||
FOREIGN KEY(room_id) REFERENCES chat_rooms(room_id)
|
||||
);
|
||||
|
|
|
@ -15,7 +15,7 @@ impl Database {
|
|||
user_id INTEGER NOT NULL,
|
||||
post_id INTEGER NOT NULL,
|
||||
date INTEGER NOT NULL,
|
||||
content VARCHAR(2000) NOT NULL,
|
||||
content VARCHAR(255) NOT NULL,
|
||||
FOREIGN KEY(user_id) REFERENCES users(user_id),
|
||||
FOREIGN KEY(post_id) REFERENCES posts(post_id)
|
||||
);
|
||||
|
|
|
@ -13,7 +13,7 @@ impl Database {
|
|||
CREATE TABLE IF NOT EXISTS posts (
|
||||
post_id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
user_id INTEGER NOT NULL,
|
||||
content VARCHAR(5000) NOT NULL,
|
||||
content VARCHAR(500) NOT NULL,
|
||||
date INTEGER NOT NULL,
|
||||
FOREIGN KEY(user_id) REFERENCES users(user_id)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue