I have got a table structure which is as follows:
`CREATE TABLE "pages" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"title" varchar(255),
"body" varchar(255),
"author" varchar(255),
"email" varchar(255),
"reference" varchar(255),
"created_at" datetime,
"updated_at" datetime);`
Is this table structure bad?
edit-1
Its sqlite database i am using.
Based on the limited info that you have provided. If the table fits your needs then no it is not bad.
However if you will have the same author with multiple entries. You might want to consider removing the author from your pages table and have a separate table for authors then use a foreign key relationship between authors and pages.
You could do the same thing with the email if you will have multiple emails for each author.