Go to file
2025-01-11 01:12:38 +03:00
src init 2024-12-28 21:35:45 +03:00
.gitignore init 2024-12-28 21:35:45 +03:00
Cargo.lock init 2024-12-28 21:35:45 +03:00
Cargo.toml init 2024-12-28 21:35:45 +03:00
LICENSE init 2024-12-28 21:35:45 +03:00
README.md Update README.md 2025-01-11 01:12:38 +03:00

Документация

PostgreSQL

create table accounts (
	-- Параметры авторизации
    id serial primary key,
    username varchar(16) not null unique,
    uuid char(32) default replace(gen_random_uuid()::text, '-', '') not null unique,
    password TEXT not null,
    access_token char(32) default '',
    server_id varchar(42) default '',
    -- Дополнительные параметры
    email varchar(32) not null unique,
    email_verify BOOLEAN not null default false,
    location int not null default 0,
	skin_type boolean not null default true,
    firstname varchar(16),
    middlename varchar(16),
    lastname varchar(16),
    registration_date timestamp default current_timestamp,
    balance decimal(10,2) not null default 0.00
)