Ariel Mashraki
c3955a08f1
schema/field: json type support ( #38 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/38
Only `IsNil` and `NotNil` predicates are supported this moment
Reviewed By: alexsn
Differential Revision: D17444976
fbshipit-source-id: 37336fa0bc7749af995933baee2e23bb7366dd78
2019-09-19 05:00:11 -07:00
Ariel Mashraki
624ecd2cc7
schema/field: add storage-key option
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/35
Reviewed By: alexsn
Differential Revision: D17394930
fbshipit-source-id: bc9d8cc6569ad457b93d47d26d143f2442f98df9
2019-09-16 04:39:17 -07:00
Ariel Mashraki
7dfe3c174c
sql/schema: more precise blob definition
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/29
Reviewed By: alexsn
Differential Revision: D17284406
fbshipit-source-id: 84c2ffb50b8f016ad361f1420c5352c7969cbc77
2019-09-10 12:40:37 -07:00
Alex Snast
b71ee6820b
ent/schema: remove string field charset / collation settings
...
Summary: don't expose starage specific features in ent schema
Reviewed By: a8m
Differential Revision: D17111724
fbshipit-source-id: fca9e624b272c0db3fed14c511fa6cb07816a100
2019-08-29 07:38:39 -07:00
Alex Snast
4c1f28d58f
ent/schema: allow setting collation for string fields
...
Reviewed By: a8m
Differential Revision: D17090481
fbshipit-source-id: a08768c9bac4318a91bc6a067c85d6eb022c3024
2019-08-28 04:52:32 -07:00
Alex Snast
373769dfaf
ent/gen: adding EqualFold predicate for string fields
...
Summary: Similar to `ContainsFold` predicate requires `--storage=sql` argument to be passed to entc.
Reviewed By: a8m
Differential Revision: D17074805
fbshipit-source-id: ced299154417fe2c9007cd6a7a504f53c8b2ef98
2019-08-27 10:48:53 -07:00
Ariel Mashraki
772b8a33f8
ent/field: add update_default option time field
...
Reviewed By: alexsn
Differential Revision: D17070907
fbshipit-source-id: 63c9ce75c58e524044c38f9461cb04e8e45c8017
2019-08-27 06:54:49 -07:00
Ariel Mashraki
bd07c86b60
all: add license header to all go files
...
Summary:
Used addlicense to generate this:
addlicense -c "Facebook Inc" -f license_header .
example was taken from: https://github.com/facebook/litho/blob/master/lib/soloader/BUCK
Reviewed By: alexsn
Differential Revision: D17070152
fbshipit-source-id: e7b91398d7f6181727be3400c1872ad5f28e38ed
2019-08-27 04:48:28 -07:00
Ariel Mashraki
3e7270e835
ent/schema: change ent interafces for descriptor only
...
Summary: wip
Reviewed By: alexsn
Differential Revision: D17052576
fbshipit-source-id: 165faca2ff02c22bb76f164d81d406ce46ab04c4
2019-08-27 03:58:25 -07:00
Ariel Mashraki
52292557f6
entc/indexes: inverse only restriction applies only on O2O relation
...
Reviewed By: alexsn
Differential Revision: D17004823
fbshipit-source-id: 08b62960b447a157419dbeefd80ca1fcd29efd76
2019-08-25 06:41:14 -07:00
Alex Snast
e6a1333b9d
ent/schema: allow multi from edges on ent index
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/24
Reviewed By: a8m
Differential Revision: D16961315
fbshipit-source-id: cd7cd0fe2555dc1acc2ad7301d92b5b4cd042a39
2019-08-22 07:00:29 -07:00
Ariel Mashraki
f519a5465e
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
2019-08-21 08:00:01 -07:00
Alex Snast
85b29631a8
entc/schema: adding support for immutable fields ( #1340 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1340
Immutable fields are ent fields which cannot be updated
Reviewed By: a8m
Differential Revision: D16899625
fbshipit-source-id: ca482c66570e84ca9a1e0a03f729847561f2816b
2019-08-20 02:17:13 -07:00
Ariel Mashraki
e0e754717e
ent: change ent package name ( #1338 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1338
Pull Request resolved: https://github.com/facebookincubator/ent/pull/14
Reviewed By: alexsn
Differential Revision: D16890825
fbshipit-source-id: 656baaa73f5debab08c849b6b9639caeec2a8ef1
2019-08-19 09:32:14 -07:00
Alex Snast
a209a8395e
schema/field: Allow .Unique() definition on int / float fields
...
Reviewed By: a8m
Differential Revision: D16891088
fbshipit-source-id: b3d8375685b6d1957f678c2f9eb40e172891b255
2019-08-19 06:35:26 -07:00
Ariel Mashraki
079ba191e3
ent/field: add default value for time
...
Reviewed By: alexsn
Differential Revision: D16890453
fbshipit-source-id: 362ae9e9666c523bdcce16503441565b6279ff08
2019-08-19 04:21:25 -07:00
Ariel Mashraki
c16d3c8e25
ent/schema: explicitly defines non-null fields in schema
...
Reviewed By: alexsn
Differential Revision: D16791620
fbshipit-source-id: bad3ac7b2349d2f483c804eb3623c6dfa8b06313
2019-08-15 03:37:17 -07:00
Ariel Mashraki
108affa8dd
ent/schema: move schema packages into a separate package
...
Reviewed By: alexsn
Differential Revision: D16763332
fbshipit-source-id: e3e4279c62992de192464c3d3b1036c45687507c
2019-08-12 07:53:03 -07:00