Commit Graph

10 Commits

Author SHA1 Message Date
Ariel Mashraki
ee606f4e86 schema/field: add codegen header for template 2021-08-26 21:33:56 +03:00
Mohammed Salman
51ddb405fb schema/field: fix annotations doc example (#1878)
* schema/field: Fix annotation doc example

* Update numeric.tpl
2021-08-26 20:31:11 +03:00
Ariel Mashraki
11843ff867 go: upgrade to 1.17 2021-08-21 00:14:22 +03:00
Ariel Mashraki
8973af9b40 schema/field: add support for setting update default funcs to numeric fields (#1770)
* schema/field:add UpdateDefault to numeric (#1718)

* schema/field:fix comment

* schema/field: change interface to self type with DefaultFunc/UpdateDefault

* schema/field: change interface to self type with DefaultFunc/UpdateDefault

* schema/field: change interface to self type with DefaultFunc/UpdateDefault

* schema/field: add support for setting update default funcs to numeric fields

Co-authored-by: godcong <jumbycc@163.com>
2021-07-26 13:17:16 +03:00
Ariel Mashraki
c40ae45aee entc/gen: add support for summing custom Go numeric types 2021-06-25 17:30:17 +03:00
Ariel Mashraki
dd4792f5b3 go: rename module from github.com/facebook/ent => entgo.io/ent (#1226) 2021-02-02 23:03:04 +02:00
Pavel Kerbel
6d94d9e17c schema/field: add Comment field to Descriptor (#1173)
* schema/field: add Comment value to Descriptor

* schema/field: add Comment implementation
2021-01-18 09:36:28 +02:00
Ariel Mashraki
f2aa1854e4 schema/field: generate numeric builder with new godoc 2021-01-10 14:28:12 +02:00
Morgan
e4cc63c411 schema/field: add DefaultFunc for numeric types and add support for it in entc (#1153)
* entc/load: allow defaultfuncs on numeric types

* schema/field: add DefaultFunc on numeric types

* docs: document DefaultFunc better

* chore: update generated files

* pr: address issues

* docs: updates on faq, address requested changes
2021-01-10 14:05:45 +02:00
Ariel Mashraki
1b5f51b827 schema: shared annotation interface for schema objects (#813) 2020-10-03 16:51:00 +03:00