Commit Graph

15 Commits

Author SHA1 Message Date
Tantatorn Suksangwarn
eb09059141 schema/field: add DefaultFunc and UpdateDefault to float types (#4256)
* feat: add `DefaultFunc` to float type

* feat: add `UpdateDefault` to float type

* test: update `TestMarshalDefaults` in `schema_test.go`
2024-11-30 00:26:01 +02:00
Ariel Mashraki
7871b82e81 schema/field: support annotating fields as deprecated (#4132) 2024-07-10 15:55:37 +03:00
Ariel Mashraki
3f1063c77e schema/field: add support or external ValueScanner (#3391) 2023-03-16 22:18:54 +02:00
Ariel Mashraki
9517200cb6 schema/field: fallback to native validator if not configured one (#3359) 2023-03-01 12:09:26 +02:00
Ariel Mashraki
2c63d1d70e all: gofmt -w -r 'interface{} -> any' (#2874) 2022-08-19 18:23:04 +03:00
Frédéric G. MARAND
110d0d138a ent/schema/field: fix incorrect Go code in GoType() doc comments (#2441)
All examples used repeated argument names, which do not compile
2022-04-01 19:35:23 +03:00
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
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