schema/field: add builder per numeric type

Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/21

Reviewed By: alexsn

Differential Revision: D16936906

fbshipit-source-id: 06f5721ed0088107cf42382731f8b7282f22eef7
This commit is contained in:
Ariel Mashraki
2019-08-21 07:58:44 -07:00
committed by Facebook Github Bot
parent 8b345d94bb
commit f519a5465e
14 changed files with 1876 additions and 390 deletions

View File

@@ -97,6 +97,7 @@ func ExampleFieldType() {
SetNillableInt16(1).
SetNillableInt32(1).
SetNillableInt64(1).
SetValidateOptionalInt32(1).
SaveX(ctx)
log.Println("fieldtype created:", ft)