car.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Code generated by entc, DO NOT EDIT.
  2. package car
  3. const (
  4. // Label holds the string label denoting the car type in the database.
  5. Label = "car"
  6. // FieldID holds the string denoting the id field in the database.
  7. FieldID = "id" // FieldModel holds the string denoting the model vertex property in the database.
  8. FieldModel = "model" // FieldRegisteredAt holds the string denoting the registered_at vertex property in the database.
  9. FieldRegisteredAt = "registered_at"
  10. // EdgeOwner holds the string denoting the owner edge name in mutations.
  11. EdgeOwner = "owner"
  12. // Table holds the table name of the car in the database.
  13. Table = "cars"
  14. // OwnerTable is the table the holds the owner relation/edge.
  15. OwnerTable = "cars"
  16. // OwnerInverseTable is the table name for the User entity.
  17. // It exists in this package in order to avoid circular dependency with the "user" package.
  18. OwnerInverseTable = "users"
  19. // OwnerColumn is the table column denoting the owner relation/edge.
  20. OwnerColumn = "user_cars"
  21. )
  22. // Columns holds all SQL columns for car fields.
  23. var Columns = []string{
  24. FieldID,
  25. FieldModel,
  26. FieldRegisteredAt,
  27. }
  28. // ForeignKeys holds the SQL foreign-keys that are owned by the Car type.
  29. var ForeignKeys = []string{
  30. "user_cars",
  31. }