Schema diff

Declared schema · file · not a live database
4
tables
10
columns
2
references
0
enums

Diagram

authorslegacy_notesbooksreviews
addedchangedremoved
Left to right by dependency: a table sits right of everything it references, so this order is one the tables can be created in.

Tables

authors

ColumnTypeNullKeyDefaultReferencesComment
idINTEGERnullprimary
nameTEXT—

books

changed
ColumnTypeNullKeyDefaultReferencesComment
idINTEGERnullprimary
author_idINTEGER—→ authors(id)
titleTEXT—''

legacy_notes

removed
ColumnTypeNullKeyDefaultReferencesComment
idINTEGERnullprimary
bodyTEXTnull

reviews

added
ColumnTypeNullKeyDefaultReferencesComment
idINTEGERnullprimary
book_idINTEGER—→ books(id)
ratingINTEGER—