The customer table

As we mentioned earlier, this is the table where we will store our app user's information. Here is how the customer table will look like:

The table consists of the following ten columns:

  1. id: This is the unique ID for each customer.
  2. firstname: This is the first name of the customer.
  3. lastname: This is the last name of the customer.
  4. email: This is the customer's email.
  5. pass: This is the password for the customer. This field must be stored in a hashed form.
  6. cc_customerid: This is an ID that represents the credit card of the customer. We'll cover this field later in this chapter.
  7. loggedin: This flag specifies whether the user ...

Get Hands-On Full Stack Development with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.