{
	"id": "9183d23a-e051-4e21-943a-90e3df36ff6a",
	"prevId": "8be49bb1-e2e5-474b-816d-8b27c6bb7c13",
	"version": "7",
	"dialect": "postgresql",
	"tables": {
		"public.images": {
			"name": "images",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "uuid",
					"primaryKey": true,
					"notNull": true,
					"default": "gen_random_uuid()"
				},
				"user_id": {
					"name": "user_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": true
				},
				"generation_id": {
					"name": "generation_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": false
				},
				"source_image_id": {
					"name": "source_image_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": false
				},
				"prompt": {
					"name": "prompt",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"negative_prompt": {
					"name": "negative_prompt",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"model": {
					"name": "model",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"style": {
					"name": "style",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"public_url": {
					"name": "public_url",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"storage_path": {
					"name": "storage_path",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"filename": {
					"name": "filename",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"format": {
					"name": "format",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"width": {
					"name": "width",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"height": {
					"name": "height",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"file_size": {
					"name": "file_size",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"blurhash": {
					"name": "blurhash",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"is_public": {
					"name": "is_public",
					"type": "boolean",
					"primaryKey": false,
					"notNull": true,
					"default": false
				},
				"is_favorite": {
					"name": "is_favorite",
					"type": "boolean",
					"primaryKey": false,
					"notNull": true,
					"default": false
				},
				"download_count": {
					"name": "download_count",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"rating": {
					"name": "rating",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"archived_at": {
					"name": "archived_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": false
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				},
				"updated_at": {
					"name": "updated_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.image_generations": {
			"name": "image_generations",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "uuid",
					"primaryKey": true,
					"notNull": true,
					"default": "gen_random_uuid()"
				},
				"user_id": {
					"name": "user_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": true
				},
				"model_id": {
					"name": "model_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": false
				},
				"batch_id": {
					"name": "batch_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": false
				},
				"prompt": {
					"name": "prompt",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"negative_prompt": {
					"name": "negative_prompt",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"model": {
					"name": "model",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"style": {
					"name": "style",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"source_image_url": {
					"name": "source_image_url",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"width": {
					"name": "width",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"height": {
					"name": "height",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"steps": {
					"name": "steps",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"guidance_scale": {
					"name": "guidance_scale",
					"type": "real",
					"primaryKey": false,
					"notNull": false
				},
				"seed": {
					"name": "seed",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"generation_strength": {
					"name": "generation_strength",
					"type": "real",
					"primaryKey": false,
					"notNull": false
				},
				"status": {
					"name": "status",
					"type": "generation_status",
					"typeSchema": "public",
					"primaryKey": false,
					"notNull": true,
					"default": "'pending'"
				},
				"replicate_prediction_id": {
					"name": "replicate_prediction_id",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"error_message": {
					"name": "error_message",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"generation_time_seconds": {
					"name": "generation_time_seconds",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"retry_count": {
					"name": "retry_count",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"priority": {
					"name": "priority",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				},
				"completed_at": {
					"name": "completed_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": false
				}
			},
			"indexes": {},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.image_likes": {
			"name": "image_likes",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "uuid",
					"primaryKey": true,
					"notNull": true,
					"default": "gen_random_uuid()"
				},
				"image_id": {
					"name": "image_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": true
				},
				"user_id": {
					"name": "user_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": true
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {
				"image_likes_image_id_images_id_fk": {
					"name": "image_likes_image_id_images_id_fk",
					"tableFrom": "image_likes",
					"tableTo": "images",
					"columnsFrom": ["image_id"],
					"columnsTo": ["id"],
					"onDelete": "cascade",
					"onUpdate": "no action"
				}
			},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {
				"unique_image_user": {
					"name": "unique_image_user",
					"nullsNotDistinct": false,
					"columns": ["image_id", "user_id"]
				}
			},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.batch_generations": {
			"name": "batch_generations",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "uuid",
					"primaryKey": true,
					"notNull": true,
					"default": "gen_random_uuid()"
				},
				"user_id": {
					"name": "user_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": true
				},
				"name": {
					"name": "name",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"total_count": {
					"name": "total_count",
					"type": "integer",
					"primaryKey": false,
					"notNull": true
				},
				"completed_count": {
					"name": "completed_count",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"failed_count": {
					"name": "failed_count",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"processing_count": {
					"name": "processing_count",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"pending_count": {
					"name": "pending_count",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"status": {
					"name": "status",
					"type": "batch_status",
					"typeSchema": "public",
					"primaryKey": false,
					"notNull": true,
					"default": "'pending'"
				},
				"model_id": {
					"name": "model_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": false
				},
				"model_version": {
					"name": "model_version",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"width": {
					"name": "width",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"height": {
					"name": "height",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"steps": {
					"name": "steps",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"guidance_scale": {
					"name": "guidance_scale",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				},
				"completed_at": {
					"name": "completed_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": false
				}
			},
			"indexes": {},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.boards": {
			"name": "boards",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "uuid",
					"primaryKey": true,
					"notNull": true,
					"default": "gen_random_uuid()"
				},
				"user_id": {
					"name": "user_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": true
				},
				"name": {
					"name": "name",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"description": {
					"name": "description",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"thumbnail_url": {
					"name": "thumbnail_url",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"canvas_width": {
					"name": "canvas_width",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 2000
				},
				"canvas_height": {
					"name": "canvas_height",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 1500
				},
				"background_color": {
					"name": "background_color",
					"type": "text",
					"primaryKey": false,
					"notNull": true,
					"default": "'#ffffff'"
				},
				"is_public": {
					"name": "is_public",
					"type": "boolean",
					"primaryKey": false,
					"notNull": true,
					"default": false
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				},
				"updated_at": {
					"name": "updated_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.board_items": {
			"name": "board_items",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "uuid",
					"primaryKey": true,
					"notNull": true,
					"default": "gen_random_uuid()"
				},
				"board_id": {
					"name": "board_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": true
				},
				"image_id": {
					"name": "image_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": false
				},
				"item_type": {
					"name": "item_type",
					"type": "item_type",
					"typeSchema": "public",
					"primaryKey": false,
					"notNull": true,
					"default": "'image'"
				},
				"position_x": {
					"name": "position_x",
					"type": "real",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"position_y": {
					"name": "position_y",
					"type": "real",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"scale_x": {
					"name": "scale_x",
					"type": "real",
					"primaryKey": false,
					"notNull": true,
					"default": 1
				},
				"scale_y": {
					"name": "scale_y",
					"type": "real",
					"primaryKey": false,
					"notNull": true,
					"default": 1
				},
				"rotation": {
					"name": "rotation",
					"type": "real",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"z_index": {
					"name": "z_index",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"opacity": {
					"name": "opacity",
					"type": "real",
					"primaryKey": false,
					"notNull": true,
					"default": 1
				},
				"width": {
					"name": "width",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"height": {
					"name": "height",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"text_content": {
					"name": "text_content",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"font_size": {
					"name": "font_size",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"color": {
					"name": "color",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"properties": {
					"name": "properties",
					"type": "jsonb",
					"primaryKey": false,
					"notNull": false
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.image_tags": {
			"name": "image_tags",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "uuid",
					"primaryKey": true,
					"notNull": true,
					"default": "gen_random_uuid()"
				},
				"image_id": {
					"name": "image_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": true
				},
				"tag_id": {
					"name": "tag_id",
					"type": "uuid",
					"primaryKey": false,
					"notNull": true
				},
				"added_at": {
					"name": "added_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.tags": {
			"name": "tags",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "uuid",
					"primaryKey": true,
					"notNull": true,
					"default": "gen_random_uuid()"
				},
				"name": {
					"name": "name",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"color": {
					"name": "color",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {
				"tags_name_unique": {
					"name": "tags_name_unique",
					"nullsNotDistinct": false,
					"columns": ["name"]
				}
			},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.models": {
			"name": "models",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "uuid",
					"primaryKey": true,
					"notNull": true,
					"default": "gen_random_uuid()"
				},
				"name": {
					"name": "name",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"display_name": {
					"name": "display_name",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"description": {
					"name": "description",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"replicate_id": {
					"name": "replicate_id",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"version": {
					"name": "version",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"default_width": {
					"name": "default_width",
					"type": "integer",
					"primaryKey": false,
					"notNull": false,
					"default": 1024
				},
				"default_height": {
					"name": "default_height",
					"type": "integer",
					"primaryKey": false,
					"notNull": false,
					"default": 1024
				},
				"default_steps": {
					"name": "default_steps",
					"type": "integer",
					"primaryKey": false,
					"notNull": false,
					"default": 25
				},
				"default_guidance_scale": {
					"name": "default_guidance_scale",
					"type": "real",
					"primaryKey": false,
					"notNull": false,
					"default": 7.5
				},
				"min_width": {
					"name": "min_width",
					"type": "integer",
					"primaryKey": false,
					"notNull": false,
					"default": 512
				},
				"min_height": {
					"name": "min_height",
					"type": "integer",
					"primaryKey": false,
					"notNull": false,
					"default": 512
				},
				"max_width": {
					"name": "max_width",
					"type": "integer",
					"primaryKey": false,
					"notNull": false,
					"default": 2048
				},
				"max_height": {
					"name": "max_height",
					"type": "integer",
					"primaryKey": false,
					"notNull": false,
					"default": 2048
				},
				"max_steps": {
					"name": "max_steps",
					"type": "integer",
					"primaryKey": false,
					"notNull": false,
					"default": 50
				},
				"supports_negative_prompt": {
					"name": "supports_negative_prompt",
					"type": "boolean",
					"primaryKey": false,
					"notNull": true,
					"default": true
				},
				"supports_img2img": {
					"name": "supports_img2img",
					"type": "boolean",
					"primaryKey": false,
					"notNull": true,
					"default": false
				},
				"supports_seed": {
					"name": "supports_seed",
					"type": "boolean",
					"primaryKey": false,
					"notNull": true,
					"default": true
				},
				"is_active": {
					"name": "is_active",
					"type": "boolean",
					"primaryKey": false,
					"notNull": true,
					"default": true
				},
				"is_default": {
					"name": "is_default",
					"type": "boolean",
					"primaryKey": false,
					"notNull": true,
					"default": false
				},
				"sort_order": {
					"name": "sort_order",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"default": 0
				},
				"cost_per_generation": {
					"name": "cost_per_generation",
					"type": "real",
					"primaryKey": false,
					"notNull": false
				},
				"estimated_time_seconds": {
					"name": "estimated_time_seconds",
					"type": "integer",
					"primaryKey": false,
					"notNull": false
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				},
				"updated_at": {
					"name": "updated_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.profiles": {
			"name": "profiles",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "uuid",
					"primaryKey": true,
					"notNull": true
				},
				"username": {
					"name": "username",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"email": {
					"name": "email",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"avatar_url": {
					"name": "avatar_url",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				},
				"updated_at": {
					"name": "updated_at",
					"type": "timestamp with time zone",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		}
	},
	"enums": {
		"public.generation_status": {
			"name": "generation_status",
			"schema": "public",
			"values": ["pending", "queued", "processing", "completed", "failed", "cancelled"]
		},
		"public.batch_status": {
			"name": "batch_status",
			"schema": "public",
			"values": ["pending", "processing", "completed", "partial", "failed"]
		},
		"public.item_type": {
			"name": "item_type",
			"schema": "public",
			"values": ["image", "text"]
		}
	},
	"schemas": {},
	"sequences": {},
	"roles": {},
	"policies": {},
	"views": {},
	"_meta": {
		"columns": {},
		"schemas": {},
		"tables": {}
	}
}
