WIP account registration

This commit is contained in:
Reid 2023-08-26 19:49:43 -07:00
parent f4d9c1a3c4
commit 2ba4aa8c8e
Signed by: reidlab
GPG key ID: 6C9EAA3364F962C8
14 changed files with 419 additions and 19 deletions

23
src/db/schema.rs Normal file
View file

@ -0,0 +1,23 @@
// @generated automatically by Diesel CLI.
diesel::table! {
accounts (id) {
id -> Int4,
#[max_length = 20]
username -> Varchar,
gjp2 -> Text,
#[max_length = 254]
email -> Varchar,
is_admin -> Int4,
messages_enabled -> Int4,
comments_enabled -> Int4,
friend_requests_enabled -> Int4,
#[max_length = 30]
youtube_url -> Nullable<Varchar>,
#[max_length = 20]
twitter_url -> Nullable<Varchar>,
#[max_length = 20]
twitch_url -> Nullable<Varchar>,
created_at -> Timestamp,
}
}