Lightweight 0.20260213.0
Loading...
Searching...
No Matches
Entities.hpp File Reference

Entity definitions for the large test database schema. More...

#include "../Utils.hpp"
#include <Lightweight/Lightweight.hpp>
#include <ostream>

Go to the source code of this file.

Classes

struct  LargeDb_User
 User entity with large bio and avatar fields. Estimated: 2,000 rows × 11KB = 22MB. More...
 
struct  LargeDb_Category
 Category entity. Estimated: 200 rows × 2.5KB = 0.5MB. More...
 
struct  LargeDb_Product
 Product entity with large description and specifications JSON. Estimated: 2,000 rows × 12KB = 24MB. More...
 
struct  LargeDb_ProductImage
 ProductImage entity - main size driver with large binary image data. Estimated: 4,000 rows × 55KB = 220MB (largest contributor) More...
 
struct  LargeDb_Order
 Order entity with address JSON fields. Estimated: 10,000 rows × 1.5KB = 15MB. More...
 
struct  LargeDb_OrderItem
 OrderItem entity - join between Order and Product with quantity and price. Estimated: 30,000 rows × 600B = 18MB. More...
 
struct  LargeDb_Review
 Review entity with content, pros and cons. Estimated: 8,000 rows × 3.5KB = 28MB. More...
 
struct  LargeDb_Tag
 Tag entity for product tagging. Estimated: 500 rows × 350B = 175KB. More...
 
struct  LargeDb_ProductTag
 ProductTag join table for many-to-many Product<->Tag relationship. Estimated: 6,000 rows × 50B = 300KB. More...
 
struct  LargeDb_ActivityLog
 ActivityLog for tracking user actions - high volume table. Estimated: 50,000 rows × 2.5KB = 125MB. More...
 
struct  LargeDb_SystemAuditLog
 SystemAuditLog for system-level events - standalone high-volume table. Estimated: 5,000 rows × 8.5KB = 42.5MB. More...
 
struct  LargeDb_Article
 Article entity for blog/content management with large content. Estimated: 500 rows × 37KB = 18.5MB. More...
 

Functions

std::ostream & operator<< (std::ostream &os, LargeDb_User const &value)
 
std::ostream & operator<< (std::ostream &os, LargeDb_Category const &value)
 
std::ostream & operator<< (std::ostream &os, LargeDb_Product const &value)
 
std::ostream & operator<< (std::ostream &os, LargeDb_Order const &value)
 
std::ostream & operator<< (std::ostream &os, LargeDb_Review const &value)
 
std::ostream & operator<< (std::ostream &os, LargeDb_Tag const &value)
 
std::ostream & operator<< (std::ostream &os, LargeDb_Article const &value)
 

Detailed Description

Entity definitions for the large test database schema.

This file contains all entity structs for a complex 500MB+ test database that works across all supported backends (SQLite3, PostgreSQL, MS-SQL Server).

Definition in file Entities.hpp.

Function Documentation

◆ operator<<() [1/7]

std::ostream & operator<< ( std::ostream &  os,
LargeDb_User const &  value 
)
inline

Definition at line 227 of file Entities.hpp.

◆ operator<<() [2/7]

std::ostream & operator<< ( std::ostream &  os,
LargeDb_Category const &  value 
)
inline

Definition at line 236 of file Entities.hpp.

◆ operator<<() [3/7]

std::ostream & operator<< ( std::ostream &  os,
LargeDb_Product const &  value 
)
inline

Definition at line 241 of file Entities.hpp.

◆ operator<<() [4/7]

std::ostream & operator<< ( std::ostream &  os,
LargeDb_Order const &  value 
)
inline

Definition at line 249 of file Entities.hpp.

◆ operator<<() [5/7]

std::ostream & operator<< ( std::ostream &  os,
LargeDb_Review const &  value 
)
inline

Definition at line 257 of file Entities.hpp.

◆ operator<<() [6/7]

std::ostream & operator<< ( std::ostream &  os,
LargeDb_Tag const &  value 
)
inline

Definition at line 262 of file Entities.hpp.

◆ operator<<() [7/7]

std::ostream & operator<< ( std::ostream &  os,
LargeDb_Article const &  value 
)
inline

Definition at line 267 of file Entities.hpp.