mirror of
https://gitea.gofwd.group/sean/gunbuilder-next-tailwind.git
synced 2025-12-05 18:46:45 -05:00
493 lines
12 KiB
JSON
493 lines
12 KiB
JSON
|
|
{
|
||
|
|
"id": "00000000-0000-0000-0000-000000000000",
|
||
|
|
"prevId": "",
|
||
|
|
"version": "7",
|
||
|
|
"dialect": "postgresql",
|
||
|
|
"tables": {
|
||
|
|
"public.product_category_mappings": {
|
||
|
|
"name": "product_category_mappings",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "serial",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"feed_name": {
|
||
|
|
"name": "feed_name",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"feed_category_value": {
|
||
|
|
"name": "feed_category_value",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"canonical_category_id": {
|
||
|
|
"name": "canonical_category_id",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"confidence_score": {
|
||
|
|
"name": "confidence_score",
|
||
|
|
"type": "double precision",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"last_reviewed_by": {
|
||
|
|
"name": "last_reviewed_by",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"last_reviewed_at": {
|
||
|
|
"name": "last_reviewed_at",
|
||
|
|
"type": "timestamp",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"product_category_mappings_canonical_category_id_fkey": {
|
||
|
|
"name": "product_category_mappings_canonical_category_id_fkey",
|
||
|
|
"tableFrom": "product_category_mappings",
|
||
|
|
"tableTo": "categories",
|
||
|
|
"schemaTo": "public",
|
||
|
|
"columnsFrom": [
|
||
|
|
"canonical_category_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.categories": {
|
||
|
|
"name": "categories",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "serial",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"name": "name",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"parent_id": {
|
||
|
|
"name": "parent_id",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"categories_parent_id_fkey": {
|
||
|
|
"name": "categories_parent_id_fkey",
|
||
|
|
"tableFrom": "categories",
|
||
|
|
"tableTo": "categories",
|
||
|
|
"schemaTo": "public",
|
||
|
|
"columnsFrom": [
|
||
|
|
"parent_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"categories_slug_key": {
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
],
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"name": "categories_slug_key"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.products": {
|
||
|
|
"name": "products",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "serial",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"name": "name",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"brand": {
|
||
|
|
"name": "brand",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"description": {
|
||
|
|
"name": "description",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"upc": {
|
||
|
|
"name": "upc",
|
||
|
|
"type": "varchar(32)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"mpn": {
|
||
|
|
"name": "mpn",
|
||
|
|
"type": "varchar(64)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"canonical_category_id": {
|
||
|
|
"name": "canonical_category_id",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"created_at": {
|
||
|
|
"name": "created_at",
|
||
|
|
"type": "timestamp",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"default": "now()"
|
||
|
|
},
|
||
|
|
"updated_at": {
|
||
|
|
"name": "updated_at",
|
||
|
|
"type": "timestamp",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"default": "now()"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"products_canonical_category_id_fkey": {
|
||
|
|
"name": "products_canonical_category_id_fkey",
|
||
|
|
"tableFrom": "products",
|
||
|
|
"tableTo": "categories",
|
||
|
|
"schemaTo": "public",
|
||
|
|
"columnsFrom": [
|
||
|
|
"canonical_category_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.offers": {
|
||
|
|
"name": "offers",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "serial",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"product_id": {
|
||
|
|
"name": "product_id",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"feed_name": {
|
||
|
|
"name": "feed_name",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"feed_sku": {
|
||
|
|
"name": "feed_sku",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"price": {
|
||
|
|
"name": "price",
|
||
|
|
"type": "numeric(10, 2)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"url": {
|
||
|
|
"name": "url",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"in_stock": {
|
||
|
|
"name": "in_stock",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"vendor": {
|
||
|
|
"name": "vendor",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"last_seen_at": {
|
||
|
|
"name": "last_seen_at",
|
||
|
|
"type": "timestamp",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"default": "now()"
|
||
|
|
},
|
||
|
|
"raw_data": {
|
||
|
|
"name": "raw_data",
|
||
|
|
"type": "jsonb",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"offers_product_id_fkey": {
|
||
|
|
"name": "offers_product_id_fkey",
|
||
|
|
"tableFrom": "offers",
|
||
|
|
"tableTo": "products",
|
||
|
|
"schemaTo": "public",
|
||
|
|
"columnsFrom": [
|
||
|
|
"product_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"offers_product_id_feed_name_feed_sku_key": {
|
||
|
|
"columns": [
|
||
|
|
"product_id",
|
||
|
|
"feed_name",
|
||
|
|
"feed_sku"
|
||
|
|
],
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"name": "offers_product_id_feed_name_feed_sku_key"
|
||
|
|
},
|
||
|
|
"offers_feed_unique": {
|
||
|
|
"columns": [
|
||
|
|
"feed_name",
|
||
|
|
"feed_sku"
|
||
|
|
],
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"name": "offers_feed_unique"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.offer_price_history": {
|
||
|
|
"name": "offer_price_history",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "serial",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"offer_id": {
|
||
|
|
"name": "offer_id",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"price": {
|
||
|
|
"name": "price",
|
||
|
|
"type": "numeric(10, 2)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"seen_at": {
|
||
|
|
"name": "seen_at",
|
||
|
|
"type": "timestamp",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"default": "now()"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"offer_price_history_offer_id_fkey": {
|
||
|
|
"name": "offer_price_history_offer_id_fkey",
|
||
|
|
"tableFrom": "offer_price_history",
|
||
|
|
"tableTo": "offers",
|
||
|
|
"schemaTo": "public",
|
||
|
|
"columnsFrom": [
|
||
|
|
"offer_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.feeds": {
|
||
|
|
"name": "feeds",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "serial",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"name": "name",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"url": {
|
||
|
|
"name": "url",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"last_imported_at": {
|
||
|
|
"name": "last_imported_at",
|
||
|
|
"type": "timestamp",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"feeds_name_key": {
|
||
|
|
"columns": [
|
||
|
|
"name"
|
||
|
|
],
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"name": "feeds_name_key"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.product_attributes": {
|
||
|
|
"name": "product_attributes",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "serial",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"product_id": {
|
||
|
|
"name": "product_id",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"name": "name",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"value": {
|
||
|
|
"name": "value",
|
||
|
|
"type": "varchar(255)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"product_attributes_product_id_fkey": {
|
||
|
|
"name": "product_attributes_product_id_fkey",
|
||
|
|
"tableFrom": "product_attributes",
|
||
|
|
"tableTo": "products",
|
||
|
|
"schemaTo": "public",
|
||
|
|
"columnsFrom": [
|
||
|
|
"product_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"enums": {},
|
||
|
|
"schemas": {},
|
||
|
|
"sequences": {},
|
||
|
|
"roles": {},
|
||
|
|
"policies": {},
|
||
|
|
"views": {},
|
||
|
|
"_meta": {
|
||
|
|
"schemas": {},
|
||
|
|
"tables": {},
|
||
|
|
"columns": {}
|
||
|
|
},
|
||
|
|
"internal": {
|
||
|
|
"tables": {}
|
||
|
|
}
|
||
|
|
}
|