diff --git a/gdb/orm/binder_test.go b/gdb/orm/binder_test.go index a5ac817..437032c 100644 --- a/gdb/orm/binder_test.go +++ b/gdb/orm/binder_test.go @@ -22,6 +22,7 @@ type User struct { ID int64 Name string Timestamps + SoftDelete } func (u User) ConfigureEntity(e *EntityConfigurator) { diff --git a/gdb/orm/schema_test.go b/gdb/orm/schema_test.go index cdca8c4..07bad37 100644 --- a/gdb/orm/schema_test.go +++ b/gdb/orm/schema_test.go @@ -35,6 +35,7 @@ type Object struct { ID int64 Name string Timestamps + SoftDelete } func (o Object) ConfigureEntity(e *EntityConfigurator) { diff --git a/gdb/orm/timestamps.go b/gdb/orm/timestamps.go index 6ad40b7..3cf2ee1 100644 --- a/gdb/orm/timestamps.go +++ b/gdb/orm/timestamps.go @@ -14,5 +14,8 @@ import ( type Timestamps struct { CreatedAt sql.NullTime UpdatedAt sql.NullTime +} + +type SoftDelete struct { DeletedAt sql.NullTime }