ent/field: add update_default option time field

Reviewed By: alexsn

Differential Revision: D17070907

fbshipit-source-id: 63c9ce75c58e524044c38f9461cb04e8e45c8017
This commit is contained in:
Ariel Mashraki
2019-08-27 06:53:44 -07:00
committed by Facebook Github Bot
parent bd07c86b60
commit 772b8a33f8
30 changed files with 376 additions and 100 deletions

View File

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