From 437cd18dc7a2b1f7832035a2b86866e81fe0b766 Mon Sep 17 00:00:00 2001 From: tiglog Date: Tue, 22 Aug 2023 16:24:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=8A=8A=20deleted=5Fat=20?= =?UTF-8?q?=E5=88=86=E7=A6=BB=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gdb/orm/binder_test.go | 1 + gdb/orm/schema_test.go | 1 + gdb/orm/timestamps.go | 3 +++ 3 files changed, 5 insertions(+) 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 }