// @generated automatically by Diesel CLI. diesel::table! { ai_catalog_meta (key) { key -> Text, value -> Text, } } diesel::table! { ai_model_modalities (rowid) { rowid -> Integer, provider -> Text, model_id -> Text, direction -> Text, modality -> Text, } } diesel::table! { ai_models (provider, model_id) { provider -> Text, model_id -> Text, name -> Text, family -> Nullable, attachment -> Integer, reasoning -> Integer, tool_call -> Integer, structured_output -> Integer, temperature -> Integer, knowledge -> Nullable, release_date -> Nullable, last_updated_date -> Nullable, open_weights -> Integer, input_price -> Nullable, output_price -> Nullable, cache_read_price -> Nullable, cache_write_price -> Nullable, context_window -> Integer, max_input_tokens -> Integer, max_output_tokens -> Integer, interleaved -> Nullable, status -> Nullable, provider_package_ref -> Nullable, updated_at -> BigInt, } } diesel::table! { ai_providers (id) { id -> Text, name -> Text, env -> Nullable, package_ref -> Nullable, api -> Nullable, doc -> Nullable, updated_at -> BigInt, } } diesel::table! { chat_conversations (id) { id -> Text, title -> Text, model -> Nullable, copilot_session_id -> Nullable, surface_state -> Nullable, created_at -> BigInt, updated_at -> BigInt, } } diesel::table! { chat_messages (id) { id -> Integer, conversation_id -> Text, role -> Text, content -> Nullable, tool_call_id -> Nullable, tool_calls -> Nullable, created_at -> BigInt, cache_read_tokens -> Nullable, cache_write_tokens -> Nullable, token_usage_input -> Nullable, token_usage_output -> Nullable, } } diesel::table! { db_notifications (id) { id -> Integer, entity_type -> Text, entity_id -> Text, action -> Text, from_cli -> Integer, seen_at -> Nullable, created_at -> BigInt, project_id -> Nullable, } } diesel::table! { dismissed_duplicate_pairs (id) { id -> Text, project_id -> Text, post_id_a -> Text, post_id_b -> Text, dismissed_at -> BigInt, } } diesel::table! { embedding_keys (label) { label -> BigInt, post_id -> Text, project_id -> Text, content_hash -> Text, vector -> Text, } } diesel::table! { generated_file_hashes (rowid) { rowid -> Integer, project_id -> Text, relative_path -> Text, content_hash -> Text, updated_at -> BigInt, } } diesel::table! { import_definitions (id) { id -> Text, project_id -> Text, name -> Text, wxr_file_path -> Nullable, uploads_folder_path -> Nullable, last_analysis_result -> Nullable, created_at -> BigInt, updated_at -> BigInt, } } diesel::table! { mcp_proposals (id) { id -> Text, project_id -> Text, kind -> Text, status -> Text, entity_id -> Nullable, data -> Text, result -> Nullable, created_at -> BigInt, expires_at -> BigInt, resolved_at -> Nullable, } } diesel::table! { media (id) { id -> Text, project_id -> Text, filename -> Text, original_name -> Text, mime_type -> Text, size -> BigInt, width -> Nullable, height -> Nullable, title -> Nullable, alt -> Nullable, caption -> Nullable, author -> Nullable, file_path -> Text, sidecar_path -> Text, created_at -> BigInt, updated_at -> BigInt, checksum -> Nullable, tags -> Text, language -> Nullable, } } diesel::table! { media_translations (id) { id -> Text, project_id -> Text, translation_for -> Text, language -> Text, title -> Nullable, alt -> Nullable, caption -> Nullable, created_at -> BigInt, updated_at -> BigInt, } } diesel::table! { post_links (id) { id -> Text, source_post_id -> Text, target_post_id -> Text, link_text -> Nullable, created_at -> BigInt, } } diesel::table! { post_media (id) { id -> Text, project_id -> Text, post_id -> Text, media_id -> Text, sort_order -> Integer, created_at -> BigInt, } } diesel::table! { post_translations (id) { id -> Text, project_id -> Text, translation_for -> Text, language -> Text, title -> Text, excerpt -> Nullable, content -> Nullable, status -> Text, created_at -> BigInt, updated_at -> BigInt, published_at -> Nullable, file_path -> Text, checksum -> Nullable, } } diesel::table! { posts (id) { id -> Text, project_id -> Text, title -> Text, slug -> Text, excerpt -> Nullable, content -> Nullable, status -> Text, author -> Nullable, created_at -> BigInt, updated_at -> BigInt, published_at -> Nullable, file_path -> Text, checksum -> Nullable, tags -> Text, categories -> Text, template_slug -> Nullable, language -> Nullable, do_not_translate -> Integer, published_title -> Nullable, published_content -> Nullable, published_tags -> Nullable, published_categories -> Nullable, published_excerpt -> Nullable, } } diesel::table! { projects (id) { id -> Text, name -> Text, slug -> Text, description -> Nullable, data_path -> Nullable, is_active -> Integer, created_at -> BigInt, updated_at -> BigInt, } } diesel::table! { scripts (id) { id -> Text, project_id -> Text, slug -> Text, title -> Text, kind -> Text, entrypoint -> Text, enabled -> Integer, version -> Integer, file_path -> Text, status -> Text, content -> Nullable, created_at -> BigInt, updated_at -> BigInt, } } diesel::table! { settings (key) { key -> Text, value -> Text, updated_at -> BigInt, } } diesel::table! { tags (id) { id -> Text, project_id -> Text, name -> Text, color -> Nullable, post_template_slug -> Nullable, created_at -> BigInt, updated_at -> BigInt, } } diesel::table! { templates (id) { id -> Text, project_id -> Text, slug -> Text, title -> Text, kind -> Text, enabled -> Integer, version -> Integer, file_path -> Text, status -> Text, content -> Nullable, created_at -> BigInt, updated_at -> BigInt, } } diesel::joinable!(ai_models -> ai_providers (provider)); diesel::joinable!(chat_messages -> chat_conversations (conversation_id)); diesel::joinable!(dismissed_duplicate_pairs -> projects (project_id)); diesel::joinable!(generated_file_hashes -> projects (project_id)); diesel::joinable!(import_definitions -> projects (project_id)); diesel::joinable!(mcp_proposals -> projects (project_id)); diesel::joinable!(media -> projects (project_id)); diesel::joinable!(media_translations -> media (translation_for)); diesel::joinable!(media_translations -> projects (project_id)); diesel::joinable!(post_media -> media (media_id)); diesel::joinable!(post_media -> posts (post_id)); diesel::joinable!(post_media -> projects (project_id)); diesel::joinable!(post_translations -> posts (translation_for)); diesel::joinable!(post_translations -> projects (project_id)); diesel::joinable!(posts -> projects (project_id)); diesel::joinable!(scripts -> projects (project_id)); diesel::joinable!(tags -> projects (project_id)); diesel::joinable!(templates -> projects (project_id)); diesel::allow_tables_to_appear_in_same_query!( ai_catalog_meta, ai_model_modalities, ai_models, ai_providers, chat_conversations, chat_messages, db_notifications, dismissed_duplicate_pairs, embedding_keys, generated_file_hashes, import_definitions, mcp_proposals, media, media_translations, post_links, post_media, post_translations, posts, projects, scripts, settings, tags, templates, );