// Code generated by entc, DO NOT EDIT. package user const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAge holds the string denoting the age vertex property in the database. FieldAge = "age" // FieldName holds the string denoting the name vertex property in the database. FieldName = "name" // EdgeCars holds the string denoting the cars edge name in mutations. EdgeCars = "cars" // EdgeGroups holds the string denoting the groups edge name in mutations. 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 = "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 = "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" ) // Columns holds all SQL columns for user fields. var Columns = []string{ FieldID, FieldAge, FieldName, } var ( // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"group_id", "user_id"} ) var ( // AgeValidator is a validator for the "age" field. It is called by the builders before save. AgeValidator func(int) error // DefaultName holds the default value on creation for the name field. DefaultName string )