mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user