So let's take care of inserting a customer into the database and right now, I mean, models don't go
and have the insert order function in front of me.
And since insert customers, basically the same thing with just a couple of changes to save some time,
I'll copy this and paste it right here and we'll rename it to Insert Customer
and it will take one parameter C, which is of type customer, C for customer, and it does return an
inch and potentially an error.
So let's fix the sequel insert into customers and basically there are fewer fields.
So let's delete these and insert first name, last name and email.
And that is one, two, three, four, five fields'.
So one, two, three, four, five.
And we can delete these two placeholders.
So those are gone.
Now let's fix that to see that first name.
Last name, Ceder Email,
and we can delete these too, and everything else should stay the same.
So now we have this insert function and Mulwaree models here.
Let's just get rid of this blank line while we're in models.
Let's go back up and find transaction because we actually added a couple of fields to the database and
we need them here in the model as well.
And those were the.
Expiry date, expiry month, which will be an end and in general called our expiry month
duplicator and the expiry year.
OK, format this and save it, and now we have our models ready to go.
So that means in the next lecture or two, we can start taking care of these things in the handlers,
creating a customer and saving it, creating an order and saving it and creating a transaction and saying,
I don't think that's quite the right order, but we'll take care of that in the next lecture or two.