Usermodel in order to take advantage of all its features. This model can have any name, and Solidus can integrate with your application's existing authentication system.
Usermodel from scratch, use an authentication solution like Devise , or integrate your application's existing
idcolumn: Solidus uses integers for all foreign keys, so you need to use integer IDs in your user model. You may use other types of IDs by changing the types of the foreign key columns, but this is generally discouraged.
passwordattribute: This is needed if you use the stock
solidus_backendgems. You can implement the attribute however you see fit.
Spree.user_classto your custom model's class name, so that Solidus knows to use it in association and throughout the store.
spree_api_key: a string containing the user's API key. This should be limited to 48 characters.
bill_address_id: an integer containing the ID of the
Spree::Addressthat should be used as the user's billing address.
ship_address_id: an integer containing the ID of the
Spree::Addressthat should be used as the user's shipping address.
solidus_backendgems, you need to provide a
spree_current_userhelper method in your
solidus_backendgems, you need to provide authentication helpers so that users can sign up, log in, and log out:
Spree::UserMethodsmodule provides extensive integration for a
Usermodel, creating associations and allowing it to interact with major models in Solidus like