From 051f19a997b847b4c75d8585de174d0f6de816b4 Mon Sep 17 00:00:00 2001 From: Neel Modi Date: Thu, 22 Jul 2021 14:49:39 +0530 Subject: [PATCH] entc/gen: fix typo in templates (#1760) * fix typo * fix typo --- entc/gen/internal/bindata.go | 4 ++-- entc/gen/template/dialect/sql/meta.tmpl | 2 +- .../cascadelete/ent/comment/comment.go | 2 +- entc/integration/cascadelete/ent/post/post.go | 4 ++-- entc/integration/cascadelete/ent/user/user.go | 2 +- entc/integration/customid/ent/blob/blob.go | 4 ++-- entc/integration/customid/ent/car/car.go | 2 +- entc/integration/customid/ent/doc/doc.go | 4 ++-- entc/integration/customid/ent/group/group.go | 2 +- entc/integration/customid/ent/note/note.go | 4 ++-- entc/integration/customid/ent/pet/pet.go | 8 +++---- entc/integration/customid/ent/user/user.go | 8 +++---- entc/integration/edgefield/ent/car/car.go | 2 +- entc/integration/edgefield/ent/card/card.go | 2 +- entc/integration/edgefield/ent/info/info.go | 2 +- .../edgefield/ent/metadata/metadata.go | 6 ++--- entc/integration/edgefield/ent/pet/pet.go | 2 +- entc/integration/edgefield/ent/post/post.go | 2 +- .../edgefield/ent/rental/rental.go | 4 ++-- entc/integration/edgefield/ent/user/user.go | 16 +++++++------- entc/integration/ent/card/card.go | 4 ++-- entc/integration/ent/file/file.go | 6 ++--- entc/integration/ent/filetype/filetype.go | 2 +- entc/integration/ent/group/group.go | 8 +++---- entc/integration/ent/groupinfo/groupinfo.go | 2 +- entc/integration/ent/node/node.go | 4 ++-- entc/integration/ent/pet/pet.go | 4 ++-- entc/integration/ent/spec/spec.go | 2 +- entc/integration/ent/user/user.go | 22 +++++++++---------- entc/integration/hooks/ent/card/card.go | 2 +- entc/integration/hooks/ent/user/user.go | 6 ++--- entc/integration/idtype/ent/user/user.go | 6 ++--- entc/integration/migrate/entv1/car/car.go | 2 +- entc/integration/migrate/entv1/user/user.go | 8 +++---- entc/integration/migrate/entv2/car/car.go | 2 +- entc/integration/migrate/entv2/pet/pet.go | 2 +- entc/integration/migrate/entv2/user/user.go | 6 ++--- .../multischema/ent/group/group.go | 2 +- entc/integration/multischema/ent/pet/pet.go | 2 +- entc/integration/multischema/ent/user/user.go | 4 ++-- entc/integration/privacy/ent/task/task.go | 4 ++-- entc/integration/privacy/ent/team/team.go | 4 ++-- entc/integration/privacy/ent/user/user.go | 4 ++-- entc/integration/template/ent/pet/pet.go | 2 +- entc/integration/template/ent/user/user.go | 4 ++-- examples/edgeindex/ent/city/city.go | 2 +- examples/edgeindex/ent/street/street.go | 2 +- examples/fs/ent/file/file.go | 4 ++-- examples/m2m2types/ent/group/group.go | 2 +- examples/m2m2types/ent/user/user.go | 2 +- examples/m2mbidi/ent/user/user.go | 2 +- examples/m2mrecur/ent/user/user.go | 4 ++-- examples/o2m2types/ent/pet/pet.go | 2 +- examples/o2m2types/ent/user/user.go | 2 +- examples/o2mrecur/ent/node/node.go | 4 ++-- examples/o2o2types/ent/card/card.go | 2 +- examples/o2o2types/ent/user/user.go | 2 +- examples/o2obidi/ent/user/user.go | 2 +- examples/o2orecur/ent/node/node.go | 4 ++-- examples/privacytenant/ent/group/group.go | 4 ++-- examples/privacytenant/ent/user/user.go | 4 ++-- examples/start/ent/car/car.go | 2 +- examples/start/ent/group/group.go | 2 +- examples/start/ent/user/user.go | 4 ++-- examples/traversal/ent/group/group.go | 4 ++-- examples/traversal/ent/pet/pet.go | 4 ++-- examples/traversal/ent/user/user.go | 8 +++---- 67 files changed, 132 insertions(+), 132 deletions(-) diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index 13162e216..ffc03bcaa 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -854,7 +854,7 @@ func templateDialectSqlGroupTmpl() (*asset, error) { return a, nil } -var _templateDialectSqlMetaTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x55\xcd\x6e\xdb\x3a\x13\x5d\x5b\x4f\x31\x30\xbc\x48\x82\x86\x4a\xb3\xfb\x0a\x78\x51\xe4\x07\x30\xd2\x04\xfd\x6e\x72\xbb\x29\xba\x60\xc4\x91\x4d\x84\x26\x5d\x92\x76\x22\x08\x7e\xf7\x8b\x21\x29\x89\x72\xe3\x76\xd1\x45\x00\x8b\x33\x3c\x33\x3c\x73\xce\xa4\x6d\xcb\xb3\xe2\xca\x6c\x1a\x2b\x97\x2b\x0f\x97\x17\x1f\xff\x77\xbe\xb1\xe8\x50\x7b\xb8\xe5\x15\x3e\x1b\xf3\x02\x0b\x5d\x31\xf8\xac\x14\x84\x24\x07\x14\xb7\x3b\x14\xac\x78\x5a\x49\x07\xce\x6c\x6d\x85\x50\x19\x81\x20\x1d\x28\x59\xa1\x76\x28\x60\xab\x05\x5a\xf0\x2b\x84\xcf\x1b\x5e\xad\x10\x2e\xd9\x45\x17\x85\xda\x6c\xb5\x28\xa4\x0e\xf1\x2f\x8b\xab\x9b\x87\xc7\x1b\xa8\xa5\x42\x48\x67\xd6\x18\x0f\x42\x5a\xac\xbc\xb1\x0d\x98\x1a\x7c\x56\xcc\x5b\x44\x56\x9c\x95\xfb\x7d\x51\xd0\x1b\x60\x69\x7c\xb3\xc1\x4f\x80\xda\x2f\x0d\x93\xa6\x44\xed\xe9\xaf\x2a\x97\xa8\xd9\x53\xb3\x41\xc8\xb2\x2b\xa3\x9d\xe7\xda\x3b\xd0\x88\x02\x05\xd4\xc6\x82\xfb\xa9\x40\x48\xae\xb0\xf2\x8e\xc5\xec\xb6\x05\x81\xb5\xd4\x08\xd3\x14\x29\xdd\x4f\x55\xae\xd1\xf3\xb2\xc7\x98\xc2\x7e\x5f\x4c\xda\xf6\x1c\x2c\xd7\x4b\x84\x99\x87\x4f\x73\x98\xb1\x7f\x50\x71\x8f\x82\x6a\xbb\x90\x12\x72\x64\x0d\x9a\x72\xd8\xe2\x9a\x3d\x7a\x63\xf9\x12\xef\xb0\x81\xd9\xc1\x77\xc8\x9f\x94\x25\xb4\x2d\x25\x3f\xf0\x35\xc2\x7e\x7f\x2b\x51\x89\xc5\x35\xac\x8c\x12\x2e\xd0\xe4\xbc\x95\x7a\x09\x02\xb5\xf1\xf4\x83\xce\x16\xd7\x50\x53\x62\x24\x0d\xc7\x10\x8c\x70\xdf\x05\x9d\xc3\x34\x9e\x1f\x76\x32\x4d\xad\xa3\x16\xfd\x53\xbb\xdf\x65\x09\x4f\xfc\x59\x61\xd6\x92\x0f\xdf\x9a\xc0\x87\x06\x94\x79\x45\x0b\xb3\xae\x66\x37\x65\xc1\x3d\x7f\xe6\x0e\x59\x31\x89\x30\xa9\x09\x16\xbf\x42\xed\x8c\x59\x8c\xcc\xde\x88\x65\x47\x69\x62\x08\xe3\x85\xab\x34\x93\x50\x21\xef\x86\x7e\x0d\x1d\xc6\x1b\x5d\x2b\x96\xe6\x24\x8d\x2e\x51\x2c\xa9\x91\x6e\x4c\x33\x64\xf7\x97\xf7\x94\xf1\xb4\x42\xd8\x58\xb9\xe6\xb6\x81\x17\x6c\x40\x60\xa5\xb8\x45\x01\xcf\xa8\xcc\x2b\x6b\xdb\x9e\x8e\xc9\x91\x66\xd2\xb3\x90\x44\x91\xbf\x2d\x97\x44\x3a\xa7\xeb\xcd\x06\xfb\xac\x4c\x07\xc8\x16\x7a\x87\xd6\xe1\xef\x1f\x1b\xa8\x27\x45\x0f\x6f\x0d\x88\xdd\x83\x51\x7b\xe9\x1b\x96\x80\x17\x1e\xf0\x4d\x3a\xef\xe2\x4c\xa4\x83\x0d\xaf\x5e\xf8\x32\x38\xd1\xd8\xe0\x61\x03\x7c\x67\xa4\x80\x4a\xda\x6a\xab\xb8\x05\x81\x1b\xd4\x02\x75\xd5\xc0\xab\xf4\xab\x50\x69\x9a\x95\xfa\x9a\x20\xf6\xfb\x69\x07\xd7\x0b\xef\xf8\x2b\xe6\x23\x8c\x43\x9a\x32\x8e\x23\x67\xc6\x0f\x33\x1a\xb1\x74\x65\xd4\x76\xad\x8f\xf2\x53\x85\xf0\xd8\x33\x7f\x90\xc4\xe4\x18\xf0\x68\xb0\x31\xfc\x7b\xc7\x0c\x62\x89\xab\xe8\x1b\xb7\x92\xba\xfa\x9b\x55\xb4\xeb\x30\xa6\x9d\x27\x63\x27\x2e\x69\x9e\x2b\x05\x8f\xff\xff\x92\x1e\xee\x42\x89\x77\x3c\x19\x96\x86\x63\xc5\x64\xc7\x6d\x8f\x30\x87\xef\x3f\xe2\x92\x69\x93\xbc\x69\x3f\x64\x14\x7c\x48\x6f\x4d\x16\xad\xa3\x45\xc3\x52\x49\x1e\x0d\xb7\xea\xf7\xee\x74\xfc\x04\x8a\xca\x33\x58\xd4\xc0\x75\xd3\xad\x0d\x0c\x36\x37\xaf\xda\x01\xa7\x9e\x51\x2e\xf5\x39\xf9\x2f\x10\x42\xa8\x41\x7b\x33\xf6\xaf\xc6\xb7\x8d\xb1\x1e\xc5\x6d\xcc\xba\xc3\x66\xd8\x0f\xf9\xd9\xb0\x03\x88\x8f\x0c\x93\x0e\xb9\x07\x6e\x91\x0a\x92\xb5\x9b\x41\xd4\x23\x29\x96\x65\x92\x11\xd7\x22\xe4\x93\x0e\xe3\x68\x04\x70\x07\xf4\x46\xc1\x95\xd1\x98\x08\xed\x76\x9d\xab\x56\xb8\xe6\xa4\x26\xe2\x37\xef\x6a\xcc\xf1\x88\xcd\x17\xa2\x93\x25\x1e\x27\xa1\x9b\xfa\x25\x2c\xc0\x03\xc5\x7d\xe8\x6e\xf6\x36\x89\x14\x75\x62\xcb\xe8\x7a\xd8\xae\x7b\xd3\x50\x2b\x27\x07\x45\x7f\xdd\xb2\xbf\xee\xc4\x70\x38\x38\xee\xeb\x5d\x6e\x0a\x62\xe6\x88\x61\x2e\x03\x65\x87\x5e\x74\x23\x33\xf6\xd8\xf9\xce\x1d\xef\xb3\x43\xa3\xc2\xc9\xfd\xe5\xfd\x29\x8b\x37\xdf\x6b\x29\xa3\x98\x48\x94\x5a\xe0\xdb\xd8\xb6\x0e\x2e\x02\x8f\x70\x34\xfe\x91\xe2\x03\x1d\x3d\xd1\xe3\xaf\xd3\x9c\xf6\x43\xb7\xd7\x5b\x5d\x51\xbf\x7f\xe3\xf6\x1e\x23\xb8\xbd\x2c\xe1\x1b\x57\x52\x24\x25\x58\x24\x23\x38\x9a\x15\xb1\x95\x56\x5d\xf8\x8f\x20\x1d\xec\x28\x13\x4e\x36\xdc\xfa\xce\x64\xa3\x31\x9c\xb2\x82\xd0\x73\xc4\x93\x04\x11\xc9\x3b\x85\x67\x63\x14\xb4\xc5\x84\x1a\x97\x24\x94\x28\x9a\x8e\x23\x12\xb0\xac\xbb\xba\xf3\x79\x17\xf8\x2e\x7f\x84\xd8\xc4\xa2\xdf\x5a\x0d\xde\x6e\x31\x6a\x34\xad\xc7\x3f\x5b\xf9\xa0\x62\x1e\x0f\xc8\xa3\xb2\x59\xb4\x2f\x7d\x50\x7b\xd2\x9b\x64\x98\x5e\xca\xa8\xb9\x72\x58\xe4\xe3\xfb\x2f\x00\x00\xff\xff\x86\x01\x22\x11\x29\x0b\x00\x00") +var _templateDialectSqlMetaTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x55\xcd\x6e\xdb\x3a\x13\x5d\x5b\x4f\x31\x30\xbc\x48\x82\x86\x4a\xb3\xfb\x0a\x78\x51\xe4\x07\x30\xd2\x04\xfd\x6e\x72\xbb\x29\xba\x60\xc4\x91\x4d\x84\x26\x55\x92\x76\x22\x08\x7e\xf7\x8b\x21\x29\x99\x72\xe3\x76\xd1\x45\x00\x8b\x33\x3c\x33\x3c\x73\xce\xa4\xeb\xca\xb3\xe2\xca\x34\xad\x95\xcb\x95\x87\xcb\x8b\x8f\xff\x3b\x6f\x2c\x3a\xd4\x1e\x6e\x79\x85\xcf\xc6\xbc\xc0\x42\x57\x0c\x3e\x2b\x05\x21\xc9\x01\xc5\xed\x16\x05\x2b\x9e\x56\xd2\x81\x33\x1b\x5b\x21\x54\x46\x20\x48\x07\x4a\x56\xa8\x1d\x0a\xd8\x68\x81\x16\xfc\x0a\xe1\x73\xc3\xab\x15\xc2\x25\xbb\xe8\xa3\x50\x9b\x8d\x16\x85\xd4\x21\xfe\x65\x71\x75\xf3\xf0\x78\x03\xb5\x54\x08\xe9\xcc\x1a\xe3\x41\x48\x8b\x95\x37\xb6\x05\x53\x83\xcf\x8a\x79\x8b\xc8\x8a\xb3\x72\xb7\x2b\x0a\x7a\x03\x2c\x8d\x6f\x1b\xfc\x04\xa8\xfd\xd2\x30\x69\x4a\xd4\x9e\xfe\xaa\x72\x89\x9a\x3d\xb5\x0d\x42\x96\x5d\x19\xed\x3c\xd7\xde\x81\x46\x14\x28\xa0\x36\x16\xdc\x4f\x05\x42\x72\x85\x95\x77\x2c\x66\x77\x1d\x08\xac\xa5\x46\x98\xa6\x48\xe9\x7e\xaa\x72\x8d\x9e\x97\x03\xc6\x14\x76\xbb\x62\xd2\x75\xe7\x60\xb9\x5e\x22\xcc\x3c\x7c\x9a\xc3\x8c\xfd\x83\x8a\x7b\x14\x54\xdb\x85\x94\x90\x23\x6b\xd0\x94\xc3\x16\xd7\xec\xd1\x1b\xcb\x97\x78\x87\x2d\xcc\x0e\xbe\x43\xfe\xa4\x2c\xa1\xeb\x28\xf9\x81\xaf\x11\x76\xbb\x5b\x89\x4a\x2c\xae\x61\x65\x94\x70\x81\x26\xe7\xad\xd4\x4b\x10\xa8\x8d\xa7\x1f\x74\xb6\xb8\x86\x9a\x12\x23\x69\x38\x86\x60\x84\xfb\x2e\xe8\x1c\xa6\xf1\xfc\xb0\x93\x69\x6a\x1d\xb5\x18\x9e\xda\xff\x2e\x4b\x78\xe2\xcf\x0a\xb3\x96\x7c\xf8\xd6\x04\xbe\x6f\x40\x99\x57\xb4\x30\xeb\x6b\xf6\x53\x16\xdc\xf3\x67\xee\x90\x15\x93\x08\x93\x9a\x60\xf1\x2b\xd4\xce\x98\xc5\xc8\xec\x8d\x58\xf6\x94\x26\x86\x30\x5e\xb8\x4a\x33\x09\x15\xf2\x6e\xfc\x8a\xfb\xac\xc5\x78\xa5\xef\xc5\xd2\xa0\xa4\xd1\x25\x8a\x25\x75\xd2\xcf\x69\x86\xec\xfe\xf2\x9e\x32\x9e\x56\x08\x8d\x95\x6b\x6e\x5b\x78\xc1\x16\x04\x56\x8a\x5b\x14\xf0\x8c\xca\xbc\xb2\xae\x1b\xf8\x98\x1c\xe9\x26\xbd\x0b\x49\x15\xf9\xe3\x72\x4d\xa4\x73\xba\xde\x36\x38\x64\x65\x42\x40\xb6\xd0\x5b\xb4\x0e\x7f\xff\xda\xc0\x3d\x49\x7a\xff\xd6\x80\xd8\x3f\x18\xb5\x97\xbe\x65\x09\x78\xe1\x01\xdf\xa4\xf3\x2e\x0e\x45\x3a\x68\x78\xf5\xc2\x97\xc1\x8a\xc6\x06\x13\x1b\xe0\x5b\x23\x05\x54\xd2\x56\x1b\xc5\x2d\x08\x6c\x50\x0b\xd4\x55\x0b\xaf\xd2\xaf\x42\xa5\x69\x56\xea\x6b\x82\xd8\xed\xa6\x3d\xdc\xa0\xbc\xe3\xaf\x98\x8f\x30\x0e\x69\xca\x38\x8e\x9c\x19\xbf\x9f\xd1\x88\xa5\x2b\xa3\x36\x6b\x7d\x94\x9f\x2a\x84\xc7\xa6\xf9\x83\x24\x26\xc7\x80\x47\x83\x8d\xe1\xdf\x5b\x66\x2f\x96\xb8\x8b\xbe\x71\x2b\xa9\xab\xbf\xd9\x45\xdb\x1e\x63\xda\x9b\x32\x76\xe2\x92\xe6\xb9\x52\xf0\xf8\xff\x2f\xe9\xe1\x2e\x94\x78\xc7\x94\x61\x6b\x38\x56\x4c\xb6\xdc\x0e\x08\x73\xf8\xfe\x23\x6e\x99\x2e\xc9\x9b\x16\x44\x46\xc1\x87\xf4\xd6\xe4\xd1\x3a\x7a\x34\x6c\x95\x64\xd2\x70\xab\x7e\xef\x4e\xcf\x4f\xa0\xa8\x3c\x83\x45\x0d\x5c\xb7\xfd\xde\xc0\xe0\x73\xf3\xaa\x1d\x70\xea\x19\xe5\x52\x9f\x93\xff\x02\x21\x84\x1a\xb4\x37\x63\xff\x6a\x7c\x6b\x8c\xf5\x28\x6e\x63\xd6\x1d\xb6\xfb\x05\x91\x9f\xed\x77\x00\xf1\x91\x61\xba\xb8\x23\xb8\x45\x2a\x48\xd6\x6e\xf7\xa2\x1e\x49\xb1\x2c\x93\x8c\xb8\x16\x21\x9f\x74\x18\x47\x23\x80\x3b\xa0\x37\x0a\xae\x8c\xc6\x44\x68\xbf\xec\x5c\xb5\xc2\x35\x27\x35\x11\xbf\x79\x57\x63\x8e\x47\x6c\xbe\x10\x9d\x2c\xf1\x38\x09\xdd\xd4\x2f\x61\x03\x1e\x28\xee\x43\x7f\x73\xb0\x49\xa4\xa8\x17\x5b\x46\xd7\xc3\x66\x3d\x98\x86\x5a\x39\x39\x28\xfa\xeb\x9a\xfd\x75\x27\x86\xc3\xbd\xe3\xbe\xde\xe5\xa6\x20\x66\x8e\x18\xe6\x32\x50\x76\xe8\x45\x37\x32\xe3\x80\x9d\xef\xdc\xf1\x3e\x3b\x34\x2a\x9c\xdc\x5f\xde\x9f\xb2\x78\xf3\xbd\x96\x32\x8a\x89\x44\xa9\x05\xbe\x8d\x6d\xeb\xe0\x22\xf0\x08\x47\xe3\x1f\x29\xbe\xa7\x63\x20\x7a\xfc\x75\x9a\xd3\x7e\xe8\xf6\x7a\xa3\x2b\xea\xf7\x6f\xdc\x3e\x60\x04\xb7\x97\x25\x7c\xe3\x4a\x8a\xa4\x04\x8b\x64\x04\x47\xb3\x22\xb6\xd2\xaa\x0b\xff\x11\xa4\x83\x2d\x65\xc2\x49\xc3\xad\xef\x4d\x36\x1a\xc3\x29\x2b\x08\x3d\x47\x3c\x49\x10\x91\xbc\x53\x78\x36\x46\x41\x57\x4c\xa8\x71\x49\x42\x89\xa2\xe9\x39\x22\x01\xcb\xba\xaf\x3b\x9f\xf7\x81\xef\xf2\x47\x88\x4d\x2c\xfa\x8d\xd5\xe0\xed\x06\xa3\x46\xd3\x7a\xfc\xb3\x95\x0f\x2a\xe6\xf1\x80\x3c\x2a\x9b\x45\x87\xd2\x07\xb5\x27\x83\x49\xf6\xd3\x4b\x19\x35\x57\x0e\x8b\x7c\x7c\xff\x05\x00\x00\xff\xff\x90\xf5\xa6\xf4\x2a\x0b\x00\x00") func templateDialectSqlMetaTmplBytes() ([]byte, error) { return bindataRead( @@ -869,7 +869,7 @@ func templateDialectSqlMetaTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/meta.tmpl", size: 2857, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/dialect/sql/meta.tmpl", size: 2858, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/gen/template/dialect/sql/meta.tmpl b/entc/gen/template/dialect/sql/meta.tmpl index cf2ae775c..7f2ae3df0 100644 --- a/entc/gen/template/dialect/sql/meta.tmpl +++ b/entc/gen/template/dialect/sql/meta.tmpl @@ -17,7 +17,7 @@ in the LICENSE file in the root directory of this source tree. // Table holds the table name of the {{ lower $.Name }} in the database. Table = "{{ $.Table }}" {{- range $e := $.Edges }} - // {{ $e.TableConstant }} is the table the holds the {{ $e.Name }} relation/edge. + // {{ $e.TableConstant }} is the table that holds the {{ $e.Name }} relation/edge. {{- if $e.M2M }} The primary key declared below.{{ end }} {{ $e.TableConstant }} = "{{ $e.Rel.Table }}" {{- if ne $.Table $e.Type.Table }} diff --git a/entc/integration/cascadelete/ent/comment/comment.go b/entc/integration/cascadelete/ent/comment/comment.go index db5f64d08..4cd080e8c 100644 --- a/entc/integration/cascadelete/ent/comment/comment.go +++ b/entc/integration/cascadelete/ent/comment/comment.go @@ -19,7 +19,7 @@ const ( EdgePost = "post" // Table holds the table name of the comment in the database. Table = "comments" - // PostTable is the table the holds the post relation/edge. + // PostTable is the table that holds the post relation/edge. PostTable = "comments" // PostInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. diff --git a/entc/integration/cascadelete/ent/post/post.go b/entc/integration/cascadelete/ent/post/post.go index e6f5f41ef..f807b58ef 100644 --- a/entc/integration/cascadelete/ent/post/post.go +++ b/entc/integration/cascadelete/ent/post/post.go @@ -21,14 +21,14 @@ const ( EdgeComments = "comments" // Table holds the table name of the post in the database. Table = "posts" - // AuthorTable is the table the holds the author relation/edge. + // AuthorTable is the table that holds the author relation/edge. AuthorTable = "posts" // AuthorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AuthorInverseTable = "users" // AuthorColumn is the table column denoting the author relation/edge. AuthorColumn = "author_id" - // CommentsTable is the table the holds the comments relation/edge. + // CommentsTable is the table that holds the comments relation/edge. CommentsTable = "comments" // CommentsInverseTable is the table name for the Comment entity. // It exists in this package in order to avoid circular dependency with the "comment" package. diff --git a/entc/integration/cascadelete/ent/user/user.go b/entc/integration/cascadelete/ent/user/user.go index 130399073..72f307ee6 100644 --- a/entc/integration/cascadelete/ent/user/user.go +++ b/entc/integration/cascadelete/ent/user/user.go @@ -17,7 +17,7 @@ const ( EdgePosts = "posts" // Table holds the table name of the user in the database. Table = "users" - // PostsTable is the table the holds the posts relation/edge. + // PostsTable is the table that holds the posts relation/edge. PostsTable = "posts" // PostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. diff --git a/entc/integration/customid/ent/blob/blob.go b/entc/integration/customid/ent/blob/blob.go index f417c33bf..2906bff2e 100644 --- a/entc/integration/customid/ent/blob/blob.go +++ b/entc/integration/customid/ent/blob/blob.go @@ -23,11 +23,11 @@ const ( EdgeLinks = "links" // Table holds the table name of the blob in the database. Table = "blobs" - // ParentTable is the table the holds the parent relation/edge. + // ParentTable is the table that holds the parent relation/edge. ParentTable = "blobs" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "blob_parent" - // LinksTable is the table the holds the links relation/edge. The primary key declared below. + // LinksTable is the table that holds the links relation/edge. The primary key declared below. LinksTable = "blob_links" ) diff --git a/entc/integration/customid/ent/car/car.go b/entc/integration/customid/ent/car/car.go index 887ad1384..955e74ac5 100644 --- a/entc/integration/customid/ent/car/car.go +++ b/entc/integration/customid/ent/car/car.go @@ -21,7 +21,7 @@ const ( EdgeOwner = "owner" // Table holds the table name of the car in the database. Table = "cars" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cars" // OwnerInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. diff --git a/entc/integration/customid/ent/doc/doc.go b/entc/integration/customid/ent/doc/doc.go index ba4a46de8..dd087f38a 100644 --- a/entc/integration/customid/ent/doc/doc.go +++ b/entc/integration/customid/ent/doc/doc.go @@ -23,11 +23,11 @@ const ( EdgeChildren = "children" // Table holds the table name of the doc in the database. Table = "docs" - // ParentTable is the table the holds the parent relation/edge. + // ParentTable is the table that holds the parent relation/edge. ParentTable = "docs" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "doc_children" - // ChildrenTable is the table the holds the children relation/edge. + // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "docs" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "doc_children" diff --git a/entc/integration/customid/ent/group/group.go b/entc/integration/customid/ent/group/group.go index b92c804a2..4e7d2666b 100644 --- a/entc/integration/customid/ent/group/group.go +++ b/entc/integration/customid/ent/group/group.go @@ -17,7 +17,7 @@ const ( UserFieldID = "oid" // Table holds the table name of the group in the database. Table = "groups" - // UsersTable is the table the holds the users relation/edge. The primary key declared below. + // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "group_users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/customid/ent/note/note.go b/entc/integration/customid/ent/note/note.go index 497522e88..91b9a2eca 100644 --- a/entc/integration/customid/ent/note/note.go +++ b/entc/integration/customid/ent/note/note.go @@ -23,11 +23,11 @@ const ( EdgeChildren = "children" // Table holds the table name of the note in the database. Table = "notes" - // ParentTable is the table the holds the parent relation/edge. + // ParentTable is the table that holds the parent relation/edge. ParentTable = "notes" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "note_children" - // ChildrenTable is the table the holds the children relation/edge. + // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "notes" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "note_children" diff --git a/entc/integration/customid/ent/pet/pet.go b/entc/integration/customid/ent/pet/pet.go index 63a0bbd53..3118b1df0 100644 --- a/entc/integration/customid/ent/pet/pet.go +++ b/entc/integration/customid/ent/pet/pet.go @@ -23,23 +23,23 @@ const ( UserFieldID = "oid" // Table holds the table name of the pet in the database. Table = "pets" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pets" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_pets" - // CarsTable is the table the holds the cars relation/edge. + // CarsTable is the table that holds the cars relation/edge. CarsTable = "cars" // CarsInverseTable is the table name for the Car entity. // It exists in this package in order to avoid circular dependency with the "car" package. CarsInverseTable = "cars" // CarsColumn is the table column denoting the cars relation/edge. CarsColumn = "pet_cars" - // FriendsTable is the table the holds the friends relation/edge. The primary key declared below. + // FriendsTable is the table that holds the friends relation/edge. The primary key declared below. FriendsTable = "pet_friends" - // BestFriendTable is the table the holds the best_friend relation/edge. + // BestFriendTable is the table that holds the best_friend relation/edge. BestFriendTable = "pets" // BestFriendColumn is the table column denoting the best_friend relation/edge. BestFriendColumn = "pet_best_friend" diff --git a/entc/integration/customid/ent/user/user.go b/entc/integration/customid/ent/user/user.go index a694eef0a..736b71912 100644 --- a/entc/integration/customid/ent/user/user.go +++ b/entc/integration/customid/ent/user/user.go @@ -25,20 +25,20 @@ const ( PetFieldID = "id" // Table holds the table name of the user in the database. Table = "users" - // GroupsTable is the table the holds the groups relation/edge. The primary key declared below. + // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_users" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groups" - // ParentTable is the table the holds the parent relation/edge. + // ParentTable is the table that holds the parent relation/edge. ParentTable = "users" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "user_children" - // ChildrenTable is the table the holds the children relation/edge. + // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "users" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "user_children" - // PetsTable is the table the holds the pets relation/edge. + // PetsTable is the table that holds the pets relation/edge. PetsTable = "pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. diff --git a/entc/integration/edgefield/ent/car/car.go b/entc/integration/edgefield/ent/car/car.go index a495a2458..431533c13 100644 --- a/entc/integration/edgefield/ent/car/car.go +++ b/entc/integration/edgefield/ent/car/car.go @@ -21,7 +21,7 @@ const ( EdgeRentals = "rentals" // Table holds the table name of the car in the database. Table = "cars" - // RentalsTable is the table the holds the rentals relation/edge. + // RentalsTable is the table that holds the rentals relation/edge. RentalsTable = "rentals" // RentalsInverseTable is the table name for the Rental entity. // It exists in this package in order to avoid circular dependency with the "rental" package. diff --git a/entc/integration/edgefield/ent/card/card.go b/entc/integration/edgefield/ent/card/card.go index bae6bd11b..246727777 100644 --- a/entc/integration/edgefield/ent/card/card.go +++ b/entc/integration/edgefield/ent/card/card.go @@ -19,7 +19,7 @@ const ( EdgeOwner = "owner" // Table holds the table name of the card in the database. Table = "cards" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cards" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/edgefield/ent/info/info.go b/entc/integration/edgefield/ent/info/info.go index f38633caa..6947ca28a 100644 --- a/entc/integration/edgefield/ent/info/info.go +++ b/entc/integration/edgefield/ent/info/info.go @@ -17,7 +17,7 @@ const ( EdgeUser = "user" // Table holds the table name of the info in the database. Table = "infos" - // UserTable is the table the holds the user relation/edge. + // UserTable is the table that holds the user relation/edge. UserTable = "infos" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/edgefield/ent/metadata/metadata.go b/entc/integration/edgefield/ent/metadata/metadata.go index 76421eff9..b3dbd9c56 100644 --- a/entc/integration/edgefield/ent/metadata/metadata.go +++ b/entc/integration/edgefield/ent/metadata/metadata.go @@ -23,18 +23,18 @@ const ( EdgeParent = "parent" // Table holds the table name of the metadata in the database. Table = "metadata" - // UserTable is the table the holds the user relation/edge. + // UserTable is the table that holds the user relation/edge. UserTable = "metadata" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "id" - // ChildrenTable is the table the holds the children relation/edge. + // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "metadata" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_id" - // ParentTable is the table the holds the parent relation/edge. + // ParentTable is the table that holds the parent relation/edge. ParentTable = "metadata" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_id" diff --git a/entc/integration/edgefield/ent/pet/pet.go b/entc/integration/edgefield/ent/pet/pet.go index 970982d28..5d081ddbd 100644 --- a/entc/integration/edgefield/ent/pet/pet.go +++ b/entc/integration/edgefield/ent/pet/pet.go @@ -17,7 +17,7 @@ const ( EdgeOwner = "owner" // Table holds the table name of the pet in the database. Table = "pets" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pets" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/edgefield/ent/post/post.go b/entc/integration/edgefield/ent/post/post.go index d4e6fcc8c..544828521 100644 --- a/entc/integration/edgefield/ent/post/post.go +++ b/entc/integration/edgefield/ent/post/post.go @@ -19,7 +19,7 @@ const ( EdgeAuthor = "author" // Table holds the table name of the post in the database. Table = "posts" - // AuthorTable is the table the holds the author relation/edge. + // AuthorTable is the table that holds the author relation/edge. AuthorTable = "posts" // AuthorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/edgefield/ent/rental/rental.go b/entc/integration/edgefield/ent/rental/rental.go index 4f6b59b47..0c2d18705 100644 --- a/entc/integration/edgefield/ent/rental/rental.go +++ b/entc/integration/edgefield/ent/rental/rental.go @@ -27,14 +27,14 @@ const ( EdgeCar = "car" // Table holds the table name of the rental in the database. Table = "rentals" - // UserTable is the table the holds the user relation/edge. + // UserTable is the table that holds the user relation/edge. UserTable = "rentals" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" - // CarTable is the table the holds the car relation/edge. + // CarTable is the table that holds the car relation/edge. CarTable = "rentals" // CarInverseTable is the table name for the Car entity. // It exists in this package in order to avoid circular dependency with the "car" package. diff --git a/entc/integration/edgefield/ent/user/user.go b/entc/integration/edgefield/ent/user/user.go index 536660405..b5fdbe164 100644 --- a/entc/integration/edgefield/ent/user/user.go +++ b/entc/integration/edgefield/ent/user/user.go @@ -33,47 +33,47 @@ const ( EdgeRentals = "rentals" // Table holds the table name of the user in the database. Table = "users" - // PetsTable is the table the holds the pets relation/edge. + // PetsTable is the table that holds the pets relation/edge. PetsTable = "pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetsInverseTable = "pets" // PetsColumn is the table column denoting the pets relation/edge. PetsColumn = "owner_id" - // ParentTable is the table the holds the parent relation/edge. + // ParentTable is the table that holds the parent relation/edge. ParentTable = "users" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_id" - // ChildrenTable is the table the holds the children relation/edge. + // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "users" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_id" - // SpouseTable is the table the holds the spouse relation/edge. + // SpouseTable is the table that holds the spouse relation/edge. SpouseTable = "users" // SpouseColumn is the table column denoting the spouse relation/edge. SpouseColumn = "spouse_id" - // CardTable is the table the holds the card relation/edge. + // CardTable is the table that holds the card relation/edge. CardTable = "cards" // CardInverseTable is the table name for the Card entity. // It exists in this package in order to avoid circular dependency with the "card" package. CardInverseTable = "cards" // CardColumn is the table column denoting the card relation/edge. CardColumn = "owner_id" - // MetadataTable is the table the holds the metadata relation/edge. + // MetadataTable is the table that holds the metadata relation/edge. MetadataTable = "metadata" // MetadataInverseTable is the table name for the Metadata entity. // It exists in this package in order to avoid circular dependency with the "metadata" package. MetadataInverseTable = "metadata" // MetadataColumn is the table column denoting the metadata relation/edge. MetadataColumn = "id" - // InfoTable is the table the holds the info relation/edge. + // InfoTable is the table that holds the info relation/edge. InfoTable = "infos" // InfoInverseTable is the table name for the Info entity. // It exists in this package in order to avoid circular dependency with the "info" package. InfoInverseTable = "infos" // InfoColumn is the table column denoting the info relation/edge. InfoColumn = "id" - // RentalsTable is the table the holds the rentals relation/edge. + // RentalsTable is the table that holds the rentals relation/edge. RentalsTable = "rentals" // RentalsInverseTable is the table name for the Rental entity. // It exists in this package in order to avoid circular dependency with the "rental" package. diff --git a/entc/integration/ent/card/card.go b/entc/integration/ent/card/card.go index ac5fa761d..adb18f092 100644 --- a/entc/integration/ent/card/card.go +++ b/entc/integration/ent/card/card.go @@ -31,14 +31,14 @@ const ( EdgeSpec = "spec" // Table holds the table name of the card in the database. Table = "cards" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cards" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_card" - // SpecTable is the table the holds the spec relation/edge. The primary key declared below. + // SpecTable is the table that holds the spec relation/edge. The primary key declared below. SpecTable = "spec_card" // SpecInverseTable is the table name for the Spec entity. // It exists in this package in order to avoid circular dependency with the "spec" package. diff --git a/entc/integration/ent/file/file.go b/entc/integration/ent/file/file.go index 190387979..ee4652b9d 100644 --- a/entc/integration/ent/file/file.go +++ b/entc/integration/ent/file/file.go @@ -29,21 +29,21 @@ const ( EdgeField = "field" // Table holds the table name of the file in the database. Table = "files" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "files" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_files" - // TypeTable is the table the holds the type relation/edge. + // TypeTable is the table that holds the type relation/edge. TypeTable = "files" // TypeInverseTable is the table name for the FileType entity. // It exists in this package in order to avoid circular dependency with the "filetype" package. TypeInverseTable = "file_types" // TypeColumn is the table column denoting the type relation/edge. TypeColumn = "file_type_files" - // FieldTable is the table the holds the field relation/edge. + // FieldTable is the table that holds the field relation/edge. FieldTable = "field_types" // FieldInverseTable is the table name for the FieldType entity. // It exists in this package in order to avoid circular dependency with the "fieldtype" package. diff --git a/entc/integration/ent/filetype/filetype.go b/entc/integration/ent/filetype/filetype.go index 17acea08a..d828bb39e 100644 --- a/entc/integration/ent/filetype/filetype.go +++ b/entc/integration/ent/filetype/filetype.go @@ -25,7 +25,7 @@ const ( EdgeFiles = "files" // Table holds the table name of the filetype in the database. Table = "file_types" - // FilesTable is the table the holds the files relation/edge. + // FilesTable is the table that holds the files relation/edge. FilesTable = "files" // FilesInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. diff --git a/entc/integration/ent/group/group.go b/entc/integration/ent/group/group.go index 96a86fcaa..0722e2444 100644 --- a/entc/integration/ent/group/group.go +++ b/entc/integration/ent/group/group.go @@ -31,26 +31,26 @@ const ( EdgeInfo = "info" // Table holds the table name of the group in the database. Table = "groups" - // FilesTable is the table the holds the files relation/edge. + // FilesTable is the table that holds the files relation/edge. FilesTable = "files" // FilesInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FilesInverseTable = "files" // FilesColumn is the table column denoting the files relation/edge. FilesColumn = "group_files" - // BlockedTable is the table the holds the blocked relation/edge. + // BlockedTable is the table that holds the blocked relation/edge. BlockedTable = "users" // BlockedInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. BlockedInverseTable = "users" // BlockedColumn is the table column denoting the blocked relation/edge. BlockedColumn = "group_blocked" - // UsersTable is the table the holds the users relation/edge. The primary key declared below. + // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_groups" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" - // InfoTable is the table the holds the info relation/edge. + // InfoTable is the table that holds the info relation/edge. InfoTable = "groups" // InfoInverseTable is the table name for the GroupInfo entity. // It exists in this package in order to avoid circular dependency with the "groupinfo" package. diff --git a/entc/integration/ent/groupinfo/groupinfo.go b/entc/integration/ent/groupinfo/groupinfo.go index 9700d39c1..c029d5fca 100644 --- a/entc/integration/ent/groupinfo/groupinfo.go +++ b/entc/integration/ent/groupinfo/groupinfo.go @@ -19,7 +19,7 @@ const ( EdgeGroups = "groups" // Table holds the table name of the groupinfo in the database. Table = "group_infos" - // GroupsTable is the table the holds the groups relation/edge. + // GroupsTable is the table that holds the groups relation/edge. GroupsTable = "groups" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. diff --git a/entc/integration/ent/node/node.go b/entc/integration/ent/node/node.go index 7cb0c8ff3..dab43c14b 100644 --- a/entc/integration/ent/node/node.go +++ b/entc/integration/ent/node/node.go @@ -19,11 +19,11 @@ const ( EdgeNext = "next" // Table holds the table name of the node in the database. Table = "nodes" - // PrevTable is the table the holds the prev relation/edge. + // PrevTable is the table that holds the prev relation/edge. PrevTable = "nodes" // PrevColumn is the table column denoting the prev relation/edge. PrevColumn = "node_next" - // NextTable is the table the holds the next relation/edge. + // NextTable is the table that holds the next relation/edge. NextTable = "nodes" // NextColumn is the table column denoting the next relation/edge. NextColumn = "node_next" diff --git a/entc/integration/ent/pet/pet.go b/entc/integration/ent/pet/pet.go index 4db46a114..1c40a7e14 100644 --- a/entc/integration/ent/pet/pet.go +++ b/entc/integration/ent/pet/pet.go @@ -23,14 +23,14 @@ const ( EdgeOwner = "owner" // Table holds the table name of the pet in the database. Table = "pet" - // TeamTable is the table the holds the team relation/edge. + // TeamTable is the table that holds the team relation/edge. TeamTable = "pet" // TeamInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. TeamInverseTable = "users" // TeamColumn is the table column denoting the team relation/edge. TeamColumn = "user_team" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pet" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/ent/spec/spec.go b/entc/integration/ent/spec/spec.go index e040ece75..8ace8f4c3 100644 --- a/entc/integration/ent/spec/spec.go +++ b/entc/integration/ent/spec/spec.go @@ -15,7 +15,7 @@ const ( EdgeCard = "card" // Table holds the table name of the spec in the database. Table = "specs" - // CardTable is the table the holds the card relation/edge. The primary key declared below. + // CardTable is the table that holds the card relation/edge. The primary key declared below. CardTable = "spec_card" // CardInverseTable is the table name for the Card entity. // It exists in this package in order to avoid circular dependency with the "card" package. diff --git a/entc/integration/ent/user/user.go b/entc/integration/ent/user/user.go index 8eddcb417..5025a315c 100644 --- a/entc/integration/ent/user/user.go +++ b/entc/integration/ent/user/user.go @@ -59,54 +59,54 @@ const ( EdgeParent = "parent" // Table holds the table name of the user in the database. Table = "users" - // CardTable is the table the holds the card relation/edge. + // CardTable is the table that holds the card relation/edge. CardTable = "cards" // CardInverseTable is the table name for the Card entity. // It exists in this package in order to avoid circular dependency with the "card" package. CardInverseTable = "cards" // CardColumn is the table column denoting the card relation/edge. CardColumn = "user_card" - // PetsTable is the table the holds the pets relation/edge. + // PetsTable is the table that holds the pets relation/edge. PetsTable = "pet" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetsInverseTable = "pet" // PetsColumn is the table column denoting the pets relation/edge. PetsColumn = "user_pets" - // FilesTable is the table the holds the files relation/edge. + // FilesTable is the table that holds the files relation/edge. FilesTable = "files" // FilesInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FilesInverseTable = "files" // FilesColumn is the table column denoting the files relation/edge. FilesColumn = "user_files" - // GroupsTable is the table the holds the groups relation/edge. The primary key declared below. + // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "user_groups" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groups" - // FriendsTable is the table the holds the friends relation/edge. The primary key declared below. + // FriendsTable is the table that holds the friends relation/edge. The primary key declared below. FriendsTable = "user_friends" - // FollowersTable is the table the holds the followers relation/edge. The primary key declared below. + // FollowersTable is the table that holds the followers relation/edge. The primary key declared below. FollowersTable = "user_following" - // FollowingTable is the table the holds the following relation/edge. The primary key declared below. + // FollowingTable is the table that holds the following relation/edge. The primary key declared below. FollowingTable = "user_following" - // TeamTable is the table the holds the team relation/edge. + // TeamTable is the table that holds the team relation/edge. TeamTable = "pet" // TeamInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. TeamInverseTable = "pet" // TeamColumn is the table column denoting the team relation/edge. TeamColumn = "user_team" - // SpouseTable is the table the holds the spouse relation/edge. + // SpouseTable is the table that holds the spouse relation/edge. SpouseTable = "users" // SpouseColumn is the table column denoting the spouse relation/edge. SpouseColumn = "user_spouse" - // ChildrenTable is the table the holds the children relation/edge. + // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "users" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "user_parent" - // ParentTable is the table the holds the parent relation/edge. + // ParentTable is the table that holds the parent relation/edge. ParentTable = "users" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "user_parent" diff --git a/entc/integration/hooks/ent/card/card.go b/entc/integration/hooks/ent/card/card.go index 4918ce634..6ce2a68bd 100644 --- a/entc/integration/hooks/ent/card/card.go +++ b/entc/integration/hooks/ent/card/card.go @@ -29,7 +29,7 @@ const ( EdgeOwner = "owner" // Table holds the table name of the card in the database. Table = "cards" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cards" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/hooks/ent/user/user.go b/entc/integration/hooks/ent/user/user.go index 63e487e65..c5e6bd366 100644 --- a/entc/integration/hooks/ent/user/user.go +++ b/entc/integration/hooks/ent/user/user.go @@ -29,16 +29,16 @@ const ( EdgeBestFriend = "best_friend" // Table holds the table name of the user in the database. Table = "users" - // CardsTable is the table the holds the cards relation/edge. + // CardsTable is the table that holds the cards relation/edge. CardsTable = "cards" // CardsInverseTable is the table name for the Card entity. // It exists in this package in order to avoid circular dependency with the "card" package. CardsInverseTable = "cards" // CardsColumn is the table column denoting the cards relation/edge. CardsColumn = "user_cards" - // FriendsTable is the table the holds the friends relation/edge. The primary key declared below. + // FriendsTable is the table that holds the friends relation/edge. The primary key declared below. FriendsTable = "user_friends" - // BestFriendTable is the table the holds the best_friend relation/edge. + // BestFriendTable is the table that holds the best_friend relation/edge. BestFriendTable = "users" // BestFriendColumn is the table column denoting the best_friend relation/edge. BestFriendColumn = "user_best_friend" diff --git a/entc/integration/idtype/ent/user/user.go b/entc/integration/idtype/ent/user/user.go index a71c4554e..78164aa77 100644 --- a/entc/integration/idtype/ent/user/user.go +++ b/entc/integration/idtype/ent/user/user.go @@ -21,13 +21,13 @@ const ( EdgeFollowing = "following" // Table holds the table name of the user in the database. Table = "users" - // SpouseTable is the table the holds the spouse relation/edge. + // SpouseTable is the table that holds the spouse relation/edge. SpouseTable = "users" // SpouseColumn is the table column denoting the spouse relation/edge. SpouseColumn = "user_spouse" - // FollowersTable is the table the holds the followers relation/edge. The primary key declared below. + // FollowersTable is the table that holds the followers relation/edge. The primary key declared below. FollowersTable = "user_following" - // FollowingTable is the table the holds the following relation/edge. The primary key declared below. + // FollowingTable is the table that holds the following relation/edge. The primary key declared below. FollowingTable = "user_following" ) diff --git a/entc/integration/migrate/entv1/car/car.go b/entc/integration/migrate/entv1/car/car.go index 6abd04f56..3e601f7db 100644 --- a/entc/integration/migrate/entv1/car/car.go +++ b/entc/integration/migrate/entv1/car/car.go @@ -17,7 +17,7 @@ const ( UserFieldID = "oid" // Table holds the table name of the car in the database. Table = "cars" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cars" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/migrate/entv1/user/user.go b/entc/integration/migrate/entv1/user/user.go index 78f51efc9..c9e331e27 100644 --- a/entc/integration/migrate/entv1/user/user.go +++ b/entc/integration/migrate/entv1/user/user.go @@ -47,19 +47,19 @@ const ( CarFieldID = "id" // Table holds the table name of the user in the database. Table = "users" - // ParentTable is the table the holds the parent relation/edge. + // ParentTable is the table that holds the parent relation/edge. ParentTable = "users" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "user_children" - // ChildrenTable is the table the holds the children relation/edge. + // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "users" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "user_children" - // SpouseTable is the table the holds the spouse relation/edge. + // SpouseTable is the table that holds the spouse relation/edge. SpouseTable = "users" // SpouseColumn is the table column denoting the spouse relation/edge. SpouseColumn = "user_spouse" - // CarTable is the table the holds the car relation/edge. + // CarTable is the table that holds the car relation/edge. CarTable = "cars" // CarInverseTable is the table name for the Car entity. // It exists in this package in order to avoid circular dependency with the "car" package. diff --git a/entc/integration/migrate/entv2/car/car.go b/entc/integration/migrate/entv2/car/car.go index 6abd04f56..3e601f7db 100644 --- a/entc/integration/migrate/entv2/car/car.go +++ b/entc/integration/migrate/entv2/car/car.go @@ -17,7 +17,7 @@ const ( UserFieldID = "oid" // Table holds the table name of the car in the database. Table = "cars" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cars" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/migrate/entv2/pet/pet.go b/entc/integration/migrate/entv2/pet/pet.go index 4ac3c2c0a..d24b21196 100644 --- a/entc/integration/migrate/entv2/pet/pet.go +++ b/entc/integration/migrate/entv2/pet/pet.go @@ -17,7 +17,7 @@ const ( UserFieldID = "oid" // Table holds the table name of the pet in the database. Table = "pets" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pets" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/migrate/entv2/user/user.go b/entc/integration/migrate/entv2/user/user.go index aaaf5b714..b83c04b41 100644 --- a/entc/integration/migrate/entv2/user/user.go +++ b/entc/integration/migrate/entv2/user/user.go @@ -58,21 +58,21 @@ const ( PetFieldID = "id" // Table holds the table name of the user in the database. Table = "users" - // CarTable is the table the holds the car relation/edge. + // CarTable is the table that holds the car relation/edge. CarTable = "cars" // CarInverseTable is the table name for the Car entity. // It exists in this package in order to avoid circular dependency with the "car" package. CarInverseTable = "cars" // CarColumn is the table column denoting the car relation/edge. CarColumn = "user_car" - // PetsTable is the table the holds the pets relation/edge. + // PetsTable is the table that holds the pets relation/edge. PetsTable = "pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetsInverseTable = "pets" // PetsColumn is the table column denoting the pets relation/edge. PetsColumn = "owner_id" - // FriendsTable is the table the holds the friends relation/edge. The primary key declared below. + // FriendsTable is the table that holds the friends relation/edge. The primary key declared below. FriendsTable = "friends" ) diff --git a/entc/integration/multischema/ent/group/group.go b/entc/integration/multischema/ent/group/group.go index eaef68cd8..4be1b3569 100644 --- a/entc/integration/multischema/ent/group/group.go +++ b/entc/integration/multischema/ent/group/group.go @@ -17,7 +17,7 @@ const ( EdgeUsers = "users" // Table holds the table name of the group in the database. Table = "groups" - // UsersTable is the table the holds the users relation/edge. The primary key declared below. + // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "group_users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/multischema/ent/pet/pet.go b/entc/integration/multischema/ent/pet/pet.go index 3a68a69ce..35ce11dbe 100644 --- a/entc/integration/multischema/ent/pet/pet.go +++ b/entc/integration/multischema/ent/pet/pet.go @@ -17,7 +17,7 @@ const ( EdgeOwner = "owner" // Table holds the table name of the pet in the database. Table = "pets" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pets" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/multischema/ent/user/user.go b/entc/integration/multischema/ent/user/user.go index c6454876a..1ee2ee3f4 100644 --- a/entc/integration/multischema/ent/user/user.go +++ b/entc/integration/multischema/ent/user/user.go @@ -19,14 +19,14 @@ const ( EdgeGroups = "groups" // Table holds the table name of the user in the database. Table = "users" - // PetsTable is the table the holds the pets relation/edge. + // PetsTable is the table that holds the pets relation/edge. PetsTable = "pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetsInverseTable = "pets" // PetsColumn is the table column denoting the pets relation/edge. PetsColumn = "user_pets" - // GroupsTable is the table the holds the groups relation/edge. The primary key declared below. + // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_users" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. diff --git a/entc/integration/privacy/ent/task/task.go b/entc/integration/privacy/ent/task/task.go index 000b1b871..61a14d39c 100644 --- a/entc/integration/privacy/ent/task/task.go +++ b/entc/integration/privacy/ent/task/task.go @@ -31,12 +31,12 @@ const ( EdgeOwner = "owner" // Table holds the table name of the task in the database. Table = "tasks" - // TeamsTable is the table the holds the teams relation/edge. The primary key declared below. + // TeamsTable is the table that holds the teams relation/edge. The primary key declared below. TeamsTable = "task_teams" // TeamsInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamsInverseTable = "teams" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "tasks" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/privacy/ent/team/team.go b/entc/integration/privacy/ent/team/team.go index a48df1f5f..fe9f8238f 100644 --- a/entc/integration/privacy/ent/team/team.go +++ b/entc/integration/privacy/ent/team/team.go @@ -23,12 +23,12 @@ const ( EdgeUsers = "users" // Table holds the table name of the team in the database. Table = "teams" - // TasksTable is the table the holds the tasks relation/edge. The primary key declared below. + // TasksTable is the table that holds the tasks relation/edge. The primary key declared below. TasksTable = "task_teams" // TasksInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. TasksInverseTable = "tasks" - // UsersTable is the table the holds the users relation/edge. The primary key declared below. + // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_teams" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/privacy/ent/user/user.go b/entc/integration/privacy/ent/user/user.go index 662e589f2..7743dedff 100644 --- a/entc/integration/privacy/ent/user/user.go +++ b/entc/integration/privacy/ent/user/user.go @@ -25,12 +25,12 @@ const ( EdgeTasks = "tasks" // Table holds the table name of the user in the database. Table = "users" - // TeamsTable is the table the holds the teams relation/edge. The primary key declared below. + // TeamsTable is the table that holds the teams relation/edge. The primary key declared below. TeamsTable = "user_teams" // TeamsInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamsInverseTable = "teams" - // TasksTable is the table the holds the tasks relation/edge. + // TasksTable is the table that holds the tasks relation/edge. TasksTable = "tasks" // TasksInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. diff --git a/entc/integration/template/ent/pet/pet.go b/entc/integration/template/ent/pet/pet.go index 26e59407f..4b154a23f 100644 --- a/entc/integration/template/ent/pet/pet.go +++ b/entc/integration/template/ent/pet/pet.go @@ -19,7 +19,7 @@ const ( EdgeOwner = "owner" // Table holds the table name of the pet in the database. Table = "pets" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pets" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/entc/integration/template/ent/user/user.go b/entc/integration/template/ent/user/user.go index 3c2b5a7ba..cffc28671 100644 --- a/entc/integration/template/ent/user/user.go +++ b/entc/integration/template/ent/user/user.go @@ -19,14 +19,14 @@ const ( EdgeFriends = "friends" // Table holds the table name of the user in the database. Table = "users" - // PetsTable is the table the holds the pets relation/edge. + // PetsTable is the table that holds the pets relation/edge. PetsTable = "pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetsInverseTable = "pets" // PetsColumn is the table column denoting the pets relation/edge. PetsColumn = "user_pets" - // FriendsTable is the table the holds the friends relation/edge. The primary key declared below. + // FriendsTable is the table that holds the friends relation/edge. The primary key declared below. FriendsTable = "user_friends" ) diff --git a/examples/edgeindex/ent/city/city.go b/examples/edgeindex/ent/city/city.go index 0e5e46c02..d2686c00f 100644 --- a/examples/edgeindex/ent/city/city.go +++ b/examples/edgeindex/ent/city/city.go @@ -17,7 +17,7 @@ const ( EdgeStreets = "streets" // Table holds the table name of the city in the database. Table = "cities" - // StreetsTable is the table the holds the streets relation/edge. + // StreetsTable is the table that holds the streets relation/edge. StreetsTable = "streets" // StreetsInverseTable is the table name for the Street entity. // It exists in this package in order to avoid circular dependency with the "street" package. diff --git a/examples/edgeindex/ent/street/street.go b/examples/edgeindex/ent/street/street.go index 6ea023695..df4b28721 100644 --- a/examples/edgeindex/ent/street/street.go +++ b/examples/edgeindex/ent/street/street.go @@ -17,7 +17,7 @@ const ( EdgeCity = "city" // Table holds the table name of the street in the database. Table = "streets" - // CityTable is the table the holds the city relation/edge. + // CityTable is the table that holds the city relation/edge. CityTable = "streets" // CityInverseTable is the table name for the City entity. // It exists in this package in order to avoid circular dependency with the "city" package. diff --git a/examples/fs/ent/file/file.go b/examples/fs/ent/file/file.go index 8e6c0dad1..37f86f8c6 100644 --- a/examples/fs/ent/file/file.go +++ b/examples/fs/ent/file/file.go @@ -23,11 +23,11 @@ const ( EdgeChildren = "children" // Table holds the table name of the file in the database. Table = "files" - // ParentTable is the table the holds the parent relation/edge. + // ParentTable is the table that holds the parent relation/edge. ParentTable = "files" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_id" - // ChildrenTable is the table the holds the children relation/edge. + // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "files" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_id" diff --git a/examples/m2m2types/ent/group/group.go b/examples/m2m2types/ent/group/group.go index fda61fdc7..b57f63719 100644 --- a/examples/m2m2types/ent/group/group.go +++ b/examples/m2m2types/ent/group/group.go @@ -17,7 +17,7 @@ const ( EdgeUsers = "users" // Table holds the table name of the group in the database. Table = "groups" - // UsersTable is the table the holds the users relation/edge. The primary key declared below. + // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "group_users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/examples/m2m2types/ent/user/user.go b/examples/m2m2types/ent/user/user.go index 8a1ce4866..33196bb79 100644 --- a/examples/m2m2types/ent/user/user.go +++ b/examples/m2m2types/ent/user/user.go @@ -19,7 +19,7 @@ const ( EdgeGroups = "groups" // Table holds the table name of the user in the database. Table = "users" - // GroupsTable is the table the holds the groups relation/edge. The primary key declared below. + // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_users" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. diff --git a/examples/m2mbidi/ent/user/user.go b/examples/m2mbidi/ent/user/user.go index cba09d680..45508e5d9 100644 --- a/examples/m2mbidi/ent/user/user.go +++ b/examples/m2mbidi/ent/user/user.go @@ -19,7 +19,7 @@ const ( EdgeFriends = "friends" // Table holds the table name of the user in the database. Table = "users" - // FriendsTable is the table the holds the friends relation/edge. The primary key declared below. + // FriendsTable is the table that holds the friends relation/edge. The primary key declared below. FriendsTable = "user_friends" ) diff --git a/examples/m2mrecur/ent/user/user.go b/examples/m2mrecur/ent/user/user.go index 6c98b0f4b..a31add5d8 100644 --- a/examples/m2mrecur/ent/user/user.go +++ b/examples/m2mrecur/ent/user/user.go @@ -21,9 +21,9 @@ const ( EdgeFollowing = "following" // Table holds the table name of the user in the database. Table = "users" - // FollowersTable is the table the holds the followers relation/edge. The primary key declared below. + // FollowersTable is the table that holds the followers relation/edge. The primary key declared below. FollowersTable = "user_following" - // FollowingTable is the table the holds the following relation/edge. The primary key declared below. + // FollowingTable is the table that holds the following relation/edge. The primary key declared below. FollowingTable = "user_following" ) diff --git a/examples/o2m2types/ent/pet/pet.go b/examples/o2m2types/ent/pet/pet.go index 9ca09ab0c..f5a78e5a5 100644 --- a/examples/o2m2types/ent/pet/pet.go +++ b/examples/o2m2types/ent/pet/pet.go @@ -17,7 +17,7 @@ const ( EdgeOwner = "owner" // Table holds the table name of the pet in the database. Table = "pets" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pets" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/examples/o2m2types/ent/user/user.go b/examples/o2m2types/ent/user/user.go index ece8c4f3b..f57bb9797 100644 --- a/examples/o2m2types/ent/user/user.go +++ b/examples/o2m2types/ent/user/user.go @@ -19,7 +19,7 @@ const ( EdgePets = "pets" // Table holds the table name of the user in the database. Table = "users" - // PetsTable is the table the holds the pets relation/edge. + // PetsTable is the table that holds the pets relation/edge. PetsTable = "pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. diff --git a/examples/o2mrecur/ent/node/node.go b/examples/o2mrecur/ent/node/node.go index a1dda97a8..f36871625 100644 --- a/examples/o2mrecur/ent/node/node.go +++ b/examples/o2mrecur/ent/node/node.go @@ -19,11 +19,11 @@ const ( EdgeChildren = "children" // Table holds the table name of the node in the database. Table = "nodes" - // ParentTable is the table the holds the parent relation/edge. + // ParentTable is the table that holds the parent relation/edge. ParentTable = "nodes" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "node_children" - // ChildrenTable is the table the holds the children relation/edge. + // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "nodes" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "node_children" diff --git a/examples/o2o2types/ent/card/card.go b/examples/o2o2types/ent/card/card.go index 3ff0cffea..8c5df5111 100644 --- a/examples/o2o2types/ent/card/card.go +++ b/examples/o2o2types/ent/card/card.go @@ -19,7 +19,7 @@ const ( EdgeOwner = "owner" // Table holds the table name of the card in the database. Table = "cards" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cards" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/examples/o2o2types/ent/user/user.go b/examples/o2o2types/ent/user/user.go index 37786bd77..878cbc012 100644 --- a/examples/o2o2types/ent/user/user.go +++ b/examples/o2o2types/ent/user/user.go @@ -19,7 +19,7 @@ const ( EdgeCard = "card" // Table holds the table name of the user in the database. Table = "users" - // CardTable is the table the holds the card relation/edge. + // CardTable is the table that holds the card relation/edge. CardTable = "cards" // CardInverseTable is the table name for the Card entity. // It exists in this package in order to avoid circular dependency with the "card" package. diff --git a/examples/o2obidi/ent/user/user.go b/examples/o2obidi/ent/user/user.go index 9c466a976..53ca00b57 100644 --- a/examples/o2obidi/ent/user/user.go +++ b/examples/o2obidi/ent/user/user.go @@ -19,7 +19,7 @@ const ( EdgeSpouse = "spouse" // Table holds the table name of the user in the database. Table = "users" - // SpouseTable is the table the holds the spouse relation/edge. + // SpouseTable is the table that holds the spouse relation/edge. SpouseTable = "users" // SpouseColumn is the table column denoting the spouse relation/edge. SpouseColumn = "user_spouse" diff --git a/examples/o2orecur/ent/node/node.go b/examples/o2orecur/ent/node/node.go index 685fa51c9..25cdf8237 100644 --- a/examples/o2orecur/ent/node/node.go +++ b/examples/o2orecur/ent/node/node.go @@ -19,11 +19,11 @@ const ( EdgeNext = "next" // Table holds the table name of the node in the database. Table = "nodes" - // PrevTable is the table the holds the prev relation/edge. + // PrevTable is the table that holds the prev relation/edge. PrevTable = "nodes" // PrevColumn is the table column denoting the prev relation/edge. PrevColumn = "node_next" - // NextTable is the table the holds the next relation/edge. + // NextTable is the table that holds the next relation/edge. NextTable = "nodes" // NextColumn is the table column denoting the next relation/edge. NextColumn = "node_next" diff --git a/examples/privacytenant/ent/group/group.go b/examples/privacytenant/ent/group/group.go index 3c7cf138e..00a3834c9 100644 --- a/examples/privacytenant/ent/group/group.go +++ b/examples/privacytenant/ent/group/group.go @@ -23,14 +23,14 @@ const ( EdgeUsers = "users" // Table holds the table name of the group in the database. Table = "groups" - // TenantTable is the table the holds the tenant relation/edge. + // TenantTable is the table that holds the tenant relation/edge. TenantTable = "groups" // TenantInverseTable is the table name for the Tenant entity. // It exists in this package in order to avoid circular dependency with the "tenant" package. TenantInverseTable = "tenants" // TenantColumn is the table column denoting the tenant relation/edge. TenantColumn = "group_tenant" - // UsersTable is the table the holds the users relation/edge. The primary key declared below. + // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_groups" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/examples/privacytenant/ent/user/user.go b/examples/privacytenant/ent/user/user.go index f3d9b7fed..8dba6493d 100644 --- a/examples/privacytenant/ent/user/user.go +++ b/examples/privacytenant/ent/user/user.go @@ -25,14 +25,14 @@ const ( EdgeGroups = "groups" // Table holds the table name of the user in the database. Table = "users" - // TenantTable is the table the holds the tenant relation/edge. + // TenantTable is the table that holds the tenant relation/edge. TenantTable = "users" // TenantInverseTable is the table name for the Tenant entity. // It exists in this package in order to avoid circular dependency with the "tenant" package. TenantInverseTable = "tenants" // TenantColumn is the table column denoting the tenant relation/edge. TenantColumn = "user_tenant" - // GroupsTable is the table the holds the groups relation/edge. The primary key declared below. + // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "user_groups" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. diff --git a/examples/start/ent/car/car.go b/examples/start/ent/car/car.go index 18b28dd11..7534af90f 100644 --- a/examples/start/ent/car/car.go +++ b/examples/start/ent/car/car.go @@ -19,7 +19,7 @@ const ( EdgeOwner = "owner" // Table holds the table name of the car in the database. Table = "cars" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cars" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/examples/start/ent/group/group.go b/examples/start/ent/group/group.go index 0d311407e..9b185d828 100644 --- a/examples/start/ent/group/group.go +++ b/examples/start/ent/group/group.go @@ -17,7 +17,7 @@ const ( EdgeUsers = "users" // Table holds the table name of the group in the database. Table = "groups" - // UsersTable is the table the holds the users relation/edge. The primary key declared below. + // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "group_users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/examples/start/ent/user/user.go b/examples/start/ent/user/user.go index 638a45b75..16d43caee 100644 --- a/examples/start/ent/user/user.go +++ b/examples/start/ent/user/user.go @@ -21,14 +21,14 @@ const ( EdgeGroups = "groups" // Table holds the table name of the user in the database. Table = "users" - // CarsTable is the table the holds the cars relation/edge. + // CarsTable is the table that holds the cars relation/edge. CarsTable = "cars" // CarsInverseTable is the table name for the Car entity. // It exists in this package in order to avoid circular dependency with the "car" package. CarsInverseTable = "cars" // CarsColumn is the table column denoting the cars relation/edge. CarsColumn = "user_cars" - // GroupsTable is the table the holds the groups relation/edge. The primary key declared below. + // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_users" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. diff --git a/examples/traversal/ent/group/group.go b/examples/traversal/ent/group/group.go index 4a0acbfa1..d06c54d4f 100644 --- a/examples/traversal/ent/group/group.go +++ b/examples/traversal/ent/group/group.go @@ -19,12 +19,12 @@ const ( EdgeAdmin = "admin" // Table holds the table name of the group in the database. Table = "groups" - // UsersTable is the table the holds the users relation/edge. The primary key declared below. + // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "group_users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" - // AdminTable is the table the holds the admin relation/edge. + // AdminTable is the table that holds the admin relation/edge. AdminTable = "groups" // AdminInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/examples/traversal/ent/pet/pet.go b/examples/traversal/ent/pet/pet.go index c8ac1dd00..587259f0c 100644 --- a/examples/traversal/ent/pet/pet.go +++ b/examples/traversal/ent/pet/pet.go @@ -19,9 +19,9 @@ const ( EdgeOwner = "owner" // Table holds the table name of the pet in the database. Table = "pets" - // FriendsTable is the table the holds the friends relation/edge. The primary key declared below. + // FriendsTable is the table that holds the friends relation/edge. The primary key declared below. FriendsTable = "pet_friends" - // OwnerTable is the table the holds the owner relation/edge. + // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pets" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. diff --git a/examples/traversal/ent/user/user.go b/examples/traversal/ent/user/user.go index 68d574de2..2c4ca417d 100644 --- a/examples/traversal/ent/user/user.go +++ b/examples/traversal/ent/user/user.go @@ -25,21 +25,21 @@ const ( EdgeManage = "manage" // Table holds the table name of the user in the database. Table = "users" - // PetsTable is the table the holds the pets relation/edge. + // PetsTable is the table that holds the pets relation/edge. PetsTable = "pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetsInverseTable = "pets" // PetsColumn is the table column denoting the pets relation/edge. PetsColumn = "user_pets" - // FriendsTable is the table the holds the friends relation/edge. The primary key declared below. + // FriendsTable is the table that holds the friends relation/edge. The primary key declared below. FriendsTable = "user_friends" - // GroupsTable is the table the holds the groups relation/edge. The primary key declared below. + // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_users" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groups" - // ManageTable is the table the holds the manage relation/edge. + // ManageTable is the table that holds the manage relation/edge. ManageTable = "groups" // ManageInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package.