1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! Data model layer (models)
//!
//! This module defines all data structures for raisfast and the raw SQL queries executed via sqlx.
//!
//! Each sub-module corresponds to a domain entity, containing:
//! - Database row models (full fields, directly mapped to database tables)
//! - API response models (safe external views, e.g. filtering out password hashes)
//! - Request validation structs (with `validator` constraints)
//! - CRUD and other database operation functions
//!
//! # Sub-modules
//! - [`user`] — User model and auth-related queries
//! - [`post`] — Post model and queries
//! - [`category`] — Category model and queries
//! - [`tag`] — Tag model and queries
//! - [`comment`] — Comment model and queries
//! - [`media`] — Media file model and queries
//! - [`refresh_token`] — Refresh token model and queries
pub mod api_token;
pub mod audit_log;
pub mod cart_item;
pub mod category;
pub mod comment;
pub mod content_revision;
pub mod currencies;
pub mod email_verification;
pub mod media;
pub mod oauth;
pub mod options;
pub mod order;
pub mod order_item;
pub mod page;
pub mod password_reset;
pub mod payment_channel;
pub mod payment_order;
pub mod payment_refund;
pub mod payment_transaction;
pub mod plugin_storage;
pub mod post;
pub mod product;
pub mod product_variant;
pub mod rbac;
pub mod refresh_token;
pub mod reusable_block;
pub mod sms_code;
pub mod tag;
pub mod tenant;
pub mod user;
pub mod user_address;
pub mod user_credential;
pub mod wallet;
pub mod wallet_outbox;
pub mod wallet_transaction;