concept record declaration in category erlang

This is an excerpt from Manning's book Erlang and OTP in Action.
The record syntax lets you work with records, which are tagged tuples, in a way that avoids most of the problems with adding or removing fields and remembering in which order they occur in the tuple. The first thing you need to do is to write a record declaration, which looks like this:
-record(customer, {name="<anonymous>", address, phone}).This tells the compiler that you’ll be working with 4-tuples (three fields plus the tag), where the first element is always the atom customer. The other fields will be in the same order as in the record declaration, so name is always the second field.
For records that are only used within a single module, you usually write the record declarations at the top of the module, along with the export declarations and similar things that belong in the header of the module. But if you need to use the exact same record declaration in several modules, you have to do something different. Because you don’t want multiple definitions of the same records spread over several source files (making it hard to remember to keep them all in sync), you should put those definitions that need to be shared in a separate so-called header file, which will then be read by all the modules that need it. This is handled by the preprocessor, which is the next topic.