ent/field: add default value for time

Reviewed By: alexsn

Differential Revision: D16890453

fbshipit-source-id: 362ae9e9666c523bdcce16503441565b6279ff08
This commit is contained in:
Ariel Mashraki
2019-08-19 04:20:19 -07:00
committed by Facebook Github Bot
parent 51a4dd4412
commit 079ba191e3
19 changed files with 294 additions and 43 deletions

View File

@@ -33,6 +33,7 @@ func ExampleCard() {
c := client.Card.
Create().
SetNumber("string").
SetCreatedAt(time.Now()).
SaveX(ctx)
log.Println("card created:", c)
@@ -299,6 +300,7 @@ func ExampleUser() {
c0 := client.Card.
Create().
SetNumber("string").
SetCreatedAt(time.Now()).
SaveX(ctx)
log.Println("card created:", c0)
pe1 := client.Pet.