logo

Database

Schemafy database structure

Database Structure

Schemafy creates a single custom table: wp_baseo_custom_schemas

ColumnTypeDescription
idBIGINTPrimary key
urlVARCHAR(500)Page URL
schema_typeVARCHAR(100)Schema.org type
schema_nameVARCHAR(200)Descriptive name
schema_dataLONGTEXTJSON-LD content
meta_titleTEXTSEO meta title
meta_descriptionTEXTSEO meta description
og_titleTEXTOpen Graph title
og_descriptionTEXTOpen Graph description
og_imageVARCHAR(500)Open Graph image URL
og_typeVARCHAR(50)Open Graph type
twitter_cardVARCHAR(50)Twitter Card type
twitter_titleTEXTTwitter title
twitter_descriptionTEXTTwitter description
twitter_imageVARCHAR(500)Twitter image URL
twitter_creatorVARCHAR(100)Twitter handle
is_activeTINYINT(1)Active status
created_atDATETIMECreation timestamp
created_byBIGINTWordPress user ID
updated_atDATETIMELast update timestamp

How Injection Works

  1. When a visitor loads a page, Schemafy queries the database looking for schemas that match the current URL
  2. Active schemas are collected and formatted as JSON-LD