Lightweight 0.20260213.0
Loading...
Searching...
No Matches
LargeDb_Product Struct Reference

Product entity with large description and specifications JSON. Estimated: 2,000 rows × 12KB = 24MB. More...

#include <Entities.hpp>

Public Attributes

Light::Field< uint64_t, Light::PrimaryKey::ServerSideAutoIncrement > id
 
Light::Field< Light::SqlGuidsku
 
Light::Field< Light::SqlAnsiString< 200 > > name
 
Light::Field< std::optional< Light::SqlAnsiString< 500 > > > short_description
 
Light::Field< Light::SqlTextlong_description
 
Light::Field< Light::SqlTextspecifications_json
 
Light::Field< double > price
 
Light::Field< std::optional< double > > discount_price
 
Light::Field< int > stock_quantity { 0 }
 
Light::Field< bool > is_active { true }
 
Light::Field< bool > is_featured { false }
 
Light::Field< Light::SqlDateTimecreated_at
 
Light::Field< std::optional< Light::SqlDateTime > > updated_at
 
Light::BelongsTo< Member(LargeDb_Category::id), Light::SqlRealName { "category_id" }> category {}
 

Detailed Description

Product entity with large description and specifications JSON. Estimated: 2,000 rows × 12KB = 24MB.

Definition at line 65 of file Entities.hpp.

Member Data Documentation

◆ id

Light::Field<uint64_t, Light::PrimaryKey::ServerSideAutoIncrement> LargeDb_Product::id

Definition at line 67 of file Entities.hpp.

◆ sku

Light::Field<Light::SqlGuid> LargeDb_Product::sku

Definition at line 68 of file Entities.hpp.

◆ name

Light::Field<Light::SqlAnsiString<200> > LargeDb_Product::name

Definition at line 69 of file Entities.hpp.

◆ short_description

Light::Field<std::optional<Light::SqlAnsiString<500> > > LargeDb_Product::short_description

Definition at line 70 of file Entities.hpp.

◆ long_description

Light::Field<Light::SqlText> LargeDb_Product::long_description

Definition at line 71 of file Entities.hpp.

◆ specifications_json

Light::Field<Light::SqlText> LargeDb_Product::specifications_json

Definition at line 72 of file Entities.hpp.

◆ price

Light::Field<double> LargeDb_Product::price

Definition at line 73 of file Entities.hpp.

◆ discount_price

Light::Field<std::optional<double> > LargeDb_Product::discount_price

Definition at line 74 of file Entities.hpp.

◆ stock_quantity

Light::Field<int> LargeDb_Product::stock_quantity { 0 }

Definition at line 75 of file Entities.hpp.

◆ is_active

Light::Field<bool> LargeDb_Product::is_active { true }

Definition at line 76 of file Entities.hpp.

◆ is_featured

Light::Field<bool> LargeDb_Product::is_featured { false }

Definition at line 77 of file Entities.hpp.

◆ created_at

Light::Field<Light::SqlDateTime> LargeDb_Product::created_at

Definition at line 78 of file Entities.hpp.

◆ updated_at

Light::Field<std::optional<Light::SqlDateTime> > LargeDb_Product::updated_at

Definition at line 79 of file Entities.hpp.

◆ category

Light::BelongsTo<Member(LargeDb_Category::id), Light::SqlRealName { "category_id" }> LargeDb_Product::category {}

Definition at line 81 of file Entities.hpp.


The documentation for this struct was generated from the following file: