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

Article entity for blog/content management with large content. Estimated: 500 rows × 37KB = 18.5MB. More...

#include <Entities.hpp>

Public Attributes

Light::Field< uint64_t, Light::PrimaryKey::ServerSideAutoIncrement > id
 
Light::Field< Light::SqlAnsiString< 200 > > title
 
Light::Field< Light::SqlAnsiString< 200 > > slug
 
Light::Field< std::optional< Light::SqlAnsiString< 500 > > > excerpt
 
Light::Field< Light::SqlTextcontent
 
Light::Field< std::optional< Light::SqlText > > featured_image
 
Light::Field< Light::SqlAnsiString< 20 > > status
 
Light::Field< int > view_count { 0 }
 
Light::Field< bool > allow_comments { true }
 
Light::Field< Light::SqlDateTimecreated_at
 
Light::Field< std::optional< Light::SqlDateTime > > published_at
 
Light::Field< std::optional< Light::SqlDateTime > > updated_at
 
Light::BelongsTo< Member(LargeDb_User::id), Light::SqlRealName { "author_id" }> author {}
 

Detailed Description

Article entity for blog/content management with large content. Estimated: 500 rows × 37KB = 18.5MB.

Definition at line 207 of file Entities.hpp.

Member Data Documentation

◆ id

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

Definition at line 209 of file Entities.hpp.

◆ title

Light::Field<Light::SqlAnsiString<200> > LargeDb_Article::title

Definition at line 210 of file Entities.hpp.

◆ slug

Light::Field<Light::SqlAnsiString<200> > LargeDb_Article::slug

Definition at line 211 of file Entities.hpp.

◆ excerpt

Light::Field<std::optional<Light::SqlAnsiString<500> > > LargeDb_Article::excerpt

Definition at line 212 of file Entities.hpp.

◆ content

Light::Field<Light::SqlText> LargeDb_Article::content

Definition at line 213 of file Entities.hpp.

◆ featured_image

Light::Field<std::optional<Light::SqlText> > LargeDb_Article::featured_image

Definition at line 214 of file Entities.hpp.

◆ status

Light::Field<Light::SqlAnsiString<20> > LargeDb_Article::status

Definition at line 215 of file Entities.hpp.

◆ view_count

Light::Field<int> LargeDb_Article::view_count { 0 }

Definition at line 216 of file Entities.hpp.

◆ allow_comments

Light::Field<bool> LargeDb_Article::allow_comments { true }

Definition at line 217 of file Entities.hpp.

◆ created_at

Light::Field<Light::SqlDateTime> LargeDb_Article::created_at

Definition at line 218 of file Entities.hpp.

◆ published_at

Light::Field<std::optional<Light::SqlDateTime> > LargeDb_Article::published_at

Definition at line 219 of file Entities.hpp.

◆ updated_at

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

Definition at line 220 of file Entities.hpp.

◆ author

Light::BelongsTo<Member(LargeDb_User::id), Light::SqlRealName { "author_id" }> LargeDb_Article::author {}

Definition at line 222 of file Entities.hpp.


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