mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
ent/field: add default value for time
Reviewed By: alexsn Differential Revision: D16890453 fbshipit-source-id: 362ae9e9666c523bdcce16503441565b6279ff08
This commit is contained in:
committed by
Facebook Github Bot
parent
51a4dd4412
commit
079ba191e3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user