/*
    This file is part of jellything (https://codeberg.org/metamuffin/jellything)
    which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
    Copyright (C) 2026 metamuffin <metamuffin.org>
*/

use jellyobject::{Object, Tag, enums, fields};

pub type User = Object;

fields! {
    USER_LOGIN: str = b"Ulgn";
    USER_PASSWORD: [u8] = b"Upwd";
    USER_PASSWORD_REQUIRE_CHANGE: () = b"Upwc";
    USER_NAME: str = b"Unam";
    USER_ADMIN: () = b"Uadm";
    USER_THEME_PRESET: Tag = b"Utpr";
    USER_THEME_ACCENT: u32 = b"Utac";

    UDATA_WATCHED: () = b"Dwat";
    UDATA_RATING: f64 = b"Drat";
}
enums! {
    THEME_DARK = b"dark";
    THEME_LIGHT = b"ligh";
}
