Annie wants to create a new in-memory SQLite database that contains the books table with the following columns:
| books | |
|---|---|
id |
INTEGER |
created_at |
DATETIME |
updated_at |
DATETIME |
deleted_at |
DATETIME |
title |
TEXT |
date_published |
DATETIME |
Your task is to help Annie write the required code to declare the Book model, using the gorm.Model struct.
This problem uses the
reflect package and the hidden function checkModels() to check if you correctly declared the Book model.