supabase-community / postgrest-csharp

A C# Client library for Postgrest
https://supabase-community.github.io/postgrest-csharp/api/Postgrest.html
MIT License
114 stars 22 forks source link

BaseModel has default properties #31

Closed elrhomariyounes closed 3 years ago

elrhomariyounes commented 3 years ago

Bug report

Describe the bug

Hello, To bind a Table to a Model we should inherit from BaseModel, I think we should remove the default properties like InsertedAt, UpdatedAt and Status

To Reproduce

  1. Create a new table without the date timestamps (inserted_at, updated_at) and status
  2. Create a model inherit from BaseModel

Expected behavior

Thank you very much

acupofjose commented 3 years ago

Agreed! Good call. Fixed in 75d67a5