table_common_fields

Attribute Macro table_common_fields 

Source
#[table_common_fields]
Expand description

Auto add created_by(owner_type), updated_by(owner_type), created_at(time_type), updated_at(time_type) and is_deleted(bool) fields to struct

The format is

  • crud(owner_and_time_type)
  • crud(owner_type, time_type)

owner default type id u64, time default type is String