mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 05:37:43 +01:00
Dogfooding report on a project profile, three findings, one root cause between
the first two.
1. "No recent activity yet" on a project with a week of work behind it. The
FleetCrown→OrangeCat link was never broken: timeline_events held 17
published updates for that project. The card read project_updates — a table
with zero rows platform-wide, no writer anywhere in the codebase, and no
migration. Every project on the platform read as idle. Recent Activity now
reads timeline_events, the one store activity lands in, and renders the
publish-bus attribution ("via FleetCrown") with its deep link back.
2. Fourteen days in Draft with nothing on the page saying so. Projects were the
only entity type without the owner bar; products and services have shown
"only visible to you — publish it to go live" all along. Reused that
component rather than adding a second banner.
The status rule behind both — public iff active or completed — was written
out twice and matches the projects_public_read RLS policy, so it is now one
exported predicate the API and the page share.
3. No field for the current status of the work. `status` is the lifecycle and
cannot answer "what is happening right now". Adds projects.work_status
(nullable text, migration applied to the box before this ships), surfaced
under About and editable in the project form. It had to be added to the
update whitelist and the create payload too — the Zod schema alone would
have let it save silently as nothing.
An owner now also sees their own draft's activity; before, the one person who
could act on it was shown the same "idle" as everyone else. Visitors still see
nothing until the project is published, and a draft still 404s for them.
Verified in the running app against production data: owner sees 10 FleetCrown
updates on the reported draft (was empty); a signed-out visitor on an active
project sees 11 with attribution; the bar reads "Preview — this project is
draft and only visible to you. Publish it to go live."; work_status round-trips
PUT → DB → "Current status" on the page, and was cleared again afterwards so no
test content was left behind. Anonymous on the draft: 404, no bar.
npm run verify: exit 0 — tsc clean, lint 0 errors, 223 suites / 2224 tests.
Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1670 lines
30 KiB
JSON
1670 lines
30 KiB
JSON
{
|
|
"_backup_cat_conversations_20260703": [
|
|
"id",
|
|
"user_id",
|
|
"title",
|
|
"is_default",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"_backup_cat_messages_20260703": [
|
|
"id",
|
|
"conversation_id",
|
|
"user_id",
|
|
"role",
|
|
"content",
|
|
"model_used",
|
|
"provider",
|
|
"token_count",
|
|
"created_at"
|
|
],
|
|
"actors": [
|
|
"id",
|
|
"actor_type",
|
|
"user_id",
|
|
"group_id",
|
|
"created_at",
|
|
"updated_at",
|
|
"display_name",
|
|
"avatar_url",
|
|
"slug"
|
|
],
|
|
"ai_assistants": [
|
|
"id",
|
|
"user_id",
|
|
"title",
|
|
"description",
|
|
"category",
|
|
"tags",
|
|
"avatar_url",
|
|
"system_prompt",
|
|
"welcome_message",
|
|
"personality_traits",
|
|
"knowledge_base_urls",
|
|
"model_preference",
|
|
"max_tokens_per_response",
|
|
"temperature",
|
|
"compute_provider_type",
|
|
"compute_provider_id",
|
|
"api_provider",
|
|
"pricing_model",
|
|
"price_per_message",
|
|
"price_per_1k_tokens",
|
|
"subscription_price",
|
|
"free_messages_per_day",
|
|
"status",
|
|
"is_public",
|
|
"is_featured",
|
|
"total_conversations",
|
|
"total_revenue",
|
|
"average_rating",
|
|
"lightning_address",
|
|
"bitcoin_address",
|
|
"created_at",
|
|
"updated_at",
|
|
"published_at",
|
|
"total_withdrawn_btc",
|
|
"actor_id",
|
|
"show_on_profile",
|
|
"allowed_models",
|
|
"default_model",
|
|
"min_model_tier"
|
|
],
|
|
"ai_conversations": [
|
|
"id",
|
|
"assistant_id",
|
|
"user_id",
|
|
"title",
|
|
"status",
|
|
"total_messages",
|
|
"total_tokens_used",
|
|
"total_cost_btc",
|
|
"last_message_at",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"ai_cost_analytics": [
|
|
"assistant_id",
|
|
"assistant_title",
|
|
"creator_id",
|
|
"total_messages",
|
|
"total_tokens",
|
|
"total_cost_btc",
|
|
"total_api_cost_btc",
|
|
"total_creator_earnings_btc",
|
|
"avg_cost_per_message",
|
|
"unique_users"
|
|
],
|
|
"ai_creator_earnings": [
|
|
"id",
|
|
"user_id",
|
|
"total_earned_btc",
|
|
"total_withdrawn_btc",
|
|
"available_balance_btc",
|
|
"pending_withdrawal_btc",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"ai_creator_withdrawals": [
|
|
"id",
|
|
"user_id",
|
|
"amount_btc",
|
|
"status",
|
|
"lightning_address",
|
|
"payment_hash",
|
|
"payment_preimage",
|
|
"fee_btc",
|
|
"failure_reason",
|
|
"processed_at",
|
|
"created_at",
|
|
"updated_at",
|
|
"net_amount_btc"
|
|
],
|
|
"ai_messages": [
|
|
"id",
|
|
"conversation_id",
|
|
"role",
|
|
"content",
|
|
"tokens_used",
|
|
"cost_btc",
|
|
"model_used",
|
|
"metadata",
|
|
"created_at",
|
|
"api_cost_btc",
|
|
"creator_markup_btc"
|
|
],
|
|
"asset_availability": [
|
|
"id",
|
|
"asset_id",
|
|
"provider_actor_id",
|
|
"available_from",
|
|
"available_to",
|
|
"min_rental_hours",
|
|
"max_rental_hours",
|
|
"rental_price_per_hour_btc",
|
|
"rental_price_per_day_btc",
|
|
"blocked_dates",
|
|
"is_available",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"assets": [
|
|
"id",
|
|
"owner_id",
|
|
"type",
|
|
"title",
|
|
"description",
|
|
"location",
|
|
"estimated_value",
|
|
"currency",
|
|
"documents",
|
|
"verification_status",
|
|
"status",
|
|
"public_visibility",
|
|
"created_at",
|
|
"updated_at",
|
|
"actor_id",
|
|
"is_for_sale",
|
|
"sale_price_btc",
|
|
"is_for_rent",
|
|
"rental_price_btc",
|
|
"rental_period_type",
|
|
"min_rental_period",
|
|
"max_rental_period",
|
|
"requires_deposit",
|
|
"deposit_amount_btc",
|
|
"show_on_profile",
|
|
"is_test"
|
|
],
|
|
"audit_logs": [
|
|
"id",
|
|
"action",
|
|
"user_id",
|
|
"entity_type",
|
|
"entity_id",
|
|
"metadata",
|
|
"ip_address",
|
|
"user_agent",
|
|
"success",
|
|
"error_message",
|
|
"created_at"
|
|
],
|
|
"availability_slots": [
|
|
"id",
|
|
"service_id",
|
|
"provider_actor_id",
|
|
"day_of_week",
|
|
"specific_date",
|
|
"start_time",
|
|
"end_time",
|
|
"is_available",
|
|
"max_bookings",
|
|
"current_bookings",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"bookings": [
|
|
"id",
|
|
"bookable_type",
|
|
"bookable_id",
|
|
"provider_actor_id",
|
|
"customer_actor_id",
|
|
"customer_user_id",
|
|
"starts_at",
|
|
"ends_at",
|
|
"timezone",
|
|
"duration_minutes",
|
|
"price_btc",
|
|
"currency",
|
|
"deposit_btc",
|
|
"deposit_paid",
|
|
"total_paid_btc",
|
|
"status",
|
|
"customer_notes",
|
|
"provider_notes",
|
|
"cancellation_reason",
|
|
"metadata",
|
|
"confirmed_at",
|
|
"cancelled_at",
|
|
"completed_at",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"cat_action_log": [
|
|
"id",
|
|
"user_id",
|
|
"action_id",
|
|
"category",
|
|
"status",
|
|
"parameters",
|
|
"result",
|
|
"error_message",
|
|
"conversation_id",
|
|
"message_id",
|
|
"requested_at",
|
|
"confirmed_at",
|
|
"started_at",
|
|
"completed_at",
|
|
"amount_btc",
|
|
"created_at"
|
|
],
|
|
"cat_conversations": ["id", "user_id", "title", "is_default", "created_at", "updated_at"],
|
|
"cat_credit_entries": [
|
|
"id",
|
|
"seq",
|
|
"user_id",
|
|
"kind",
|
|
"amount_btc",
|
|
"balance_after_btc",
|
|
"ref",
|
|
"metadata",
|
|
"created_at"
|
|
],
|
|
"cat_credit_topups": [
|
|
"id",
|
|
"user_id",
|
|
"amount_btc",
|
|
"payment_hash",
|
|
"bolt11",
|
|
"status",
|
|
"created_at",
|
|
"expires_at",
|
|
"paid_at"
|
|
],
|
|
"cat_memories": [
|
|
"id",
|
|
"user_id",
|
|
"content",
|
|
"embedding",
|
|
"source",
|
|
"source_conversation_id",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"cat_messages": [
|
|
"id",
|
|
"conversation_id",
|
|
"user_id",
|
|
"role",
|
|
"content",
|
|
"model_used",
|
|
"provider",
|
|
"token_count",
|
|
"created_at"
|
|
],
|
|
"cat_pending_actions": [
|
|
"id",
|
|
"user_id",
|
|
"action_id",
|
|
"category",
|
|
"parameters",
|
|
"description",
|
|
"conversation_id",
|
|
"message_id",
|
|
"status",
|
|
"expires_at",
|
|
"confirmed_at",
|
|
"rejected_at",
|
|
"rejection_reason",
|
|
"created_at"
|
|
],
|
|
"cat_permissions": [
|
|
"id",
|
|
"user_id",
|
|
"action_id",
|
|
"category",
|
|
"granted",
|
|
"requires_confirmation",
|
|
"daily_limit",
|
|
"max_btc_per_action",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"channel_waitlist": ["id", "email", "user_id", "source", "referrer", "created_at"],
|
|
"circles": [
|
|
"id",
|
|
"actor_id",
|
|
"title",
|
|
"description",
|
|
"category",
|
|
"visibility",
|
|
"cover_image_url",
|
|
"tags",
|
|
"status",
|
|
"member_count",
|
|
"is_test",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"community_timeline_no_duplicates": [
|
|
"id",
|
|
"event_type",
|
|
"actor_id",
|
|
"subject_type",
|
|
"subject_id",
|
|
"title",
|
|
"description",
|
|
"visibility",
|
|
"event_timestamp",
|
|
"created_at",
|
|
"updated_at",
|
|
"metadata",
|
|
"like_count",
|
|
"share_count",
|
|
"comment_count",
|
|
"actor_data",
|
|
"subject_data"
|
|
],
|
|
"content_embeddings": [
|
|
"entity_type",
|
|
"entity_id",
|
|
"title",
|
|
"url",
|
|
"text_preview",
|
|
"embedding",
|
|
"updated_at",
|
|
"quality_score"
|
|
],
|
|
"contracts": [
|
|
"id",
|
|
"party_a_actor_id",
|
|
"party_b_actor_id",
|
|
"contract_type",
|
|
"terms",
|
|
"status",
|
|
"proposal_id",
|
|
"created_by",
|
|
"created_at",
|
|
"updated_at",
|
|
"activated_at",
|
|
"completed_at",
|
|
"terminated_at"
|
|
],
|
|
"contributions": [
|
|
"id",
|
|
"payment_intent_id",
|
|
"contributor_id",
|
|
"entity_type",
|
|
"entity_id",
|
|
"amount_btc",
|
|
"message",
|
|
"is_anonymous",
|
|
"created_at"
|
|
],
|
|
"conversation_details": [
|
|
"id",
|
|
"title",
|
|
"is_group",
|
|
"created_by",
|
|
"created_at",
|
|
"updated_at",
|
|
"last_message_at",
|
|
"last_message_preview",
|
|
"last_message_sender_id",
|
|
"participants",
|
|
"unread_count"
|
|
],
|
|
"conversation_participants": [
|
|
"id",
|
|
"conversation_id",
|
|
"user_id",
|
|
"role",
|
|
"joined_at",
|
|
"last_read_at",
|
|
"is_active"
|
|
],
|
|
"conversations": [
|
|
"id",
|
|
"title",
|
|
"is_group",
|
|
"created_by",
|
|
"created_at",
|
|
"updated_at",
|
|
"last_message_at",
|
|
"last_message_preview",
|
|
"last_message_sender_id",
|
|
"conversation_type",
|
|
"professional_slug"
|
|
],
|
|
"enriched_timeline_events": [
|
|
"id",
|
|
"event_type",
|
|
"event_subtype",
|
|
"actor_id",
|
|
"actor_type",
|
|
"subject_type",
|
|
"subject_id",
|
|
"target_type",
|
|
"target_id",
|
|
"title",
|
|
"description",
|
|
"content",
|
|
"amount_btc",
|
|
"quantity",
|
|
"visibility",
|
|
"is_featured",
|
|
"event_timestamp",
|
|
"created_at",
|
|
"updated_at",
|
|
"metadata",
|
|
"tags",
|
|
"parent_event_id",
|
|
"thread_id",
|
|
"is_deleted",
|
|
"actor_data",
|
|
"subject_data",
|
|
"target_data",
|
|
"like_count",
|
|
"comment_count",
|
|
"share_count"
|
|
],
|
|
"entity_wallets": [
|
|
"id",
|
|
"wallet_id",
|
|
"entity_type",
|
|
"entity_id",
|
|
"is_primary",
|
|
"created_at",
|
|
"created_by",
|
|
"visibility"
|
|
],
|
|
"event_attendees": [
|
|
"id",
|
|
"event_id",
|
|
"user_id",
|
|
"status",
|
|
"ticket_count",
|
|
"payment_status",
|
|
"transaction_id",
|
|
"registered_at",
|
|
"checked_in_at"
|
|
],
|
|
"events": [
|
|
"id",
|
|
"user_id",
|
|
"title",
|
|
"description",
|
|
"category",
|
|
"event_type",
|
|
"tags",
|
|
"start_date",
|
|
"end_date",
|
|
"timezone",
|
|
"is_all_day",
|
|
"is_recurring",
|
|
"recurrence_pattern",
|
|
"venue_name",
|
|
"venue_address",
|
|
"venue_city",
|
|
"venue_country",
|
|
"venue_postal_code",
|
|
"latitude",
|
|
"longitude",
|
|
"is_online",
|
|
"online_url",
|
|
"asset_id",
|
|
"max_attendees",
|
|
"current_attendees",
|
|
"requires_rsvp",
|
|
"rsvp_deadline",
|
|
"ticket_price",
|
|
"currency",
|
|
"is_free",
|
|
"funding_goal",
|
|
"bitcoin_address",
|
|
"lightning_address",
|
|
"images",
|
|
"thumbnail_url",
|
|
"banner_url",
|
|
"video_url",
|
|
"status",
|
|
"created_at",
|
|
"updated_at",
|
|
"actor_id",
|
|
"is_test",
|
|
"show_on_profile"
|
|
],
|
|
"follows": ["id", "follower_id", "following_id", "created_at"],
|
|
"github_repo_cache": ["user_id", "handle", "repos", "fetched_at"],
|
|
"group_activities": [
|
|
"id",
|
|
"group_id",
|
|
"user_id",
|
|
"activity_type",
|
|
"metadata",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"group_event_rsvps": ["id", "event_id", "user_id", "status", "created_at", "updated_at"],
|
|
"group_events": [
|
|
"id",
|
|
"group_id",
|
|
"creator_id",
|
|
"title",
|
|
"description",
|
|
"event_type",
|
|
"location_type",
|
|
"location_details",
|
|
"starts_at",
|
|
"ends_at",
|
|
"timezone",
|
|
"max_attendees",
|
|
"is_public",
|
|
"requires_rsvp",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"group_features": [
|
|
"id",
|
|
"group_id",
|
|
"feature_key",
|
|
"enabled",
|
|
"config",
|
|
"enabled_at",
|
|
"enabled_by"
|
|
],
|
|
"group_invitations": [
|
|
"id",
|
|
"group_id",
|
|
"user_id",
|
|
"email",
|
|
"token",
|
|
"role",
|
|
"message",
|
|
"status",
|
|
"invited_by",
|
|
"expires_at",
|
|
"responded_at",
|
|
"created_at"
|
|
],
|
|
"group_members": [
|
|
"id",
|
|
"group_id",
|
|
"user_id",
|
|
"role",
|
|
"permission_overrides",
|
|
"invited_by",
|
|
"joined_at"
|
|
],
|
|
"group_proposals": [
|
|
"id",
|
|
"group_id",
|
|
"proposer_id",
|
|
"title",
|
|
"description",
|
|
"proposal_type",
|
|
"status",
|
|
"voting_threshold",
|
|
"action_type",
|
|
"action_data",
|
|
"voting_starts_at",
|
|
"voting_ends_at",
|
|
"executed_at",
|
|
"execution_result",
|
|
"created_at",
|
|
"updated_at",
|
|
"is_public"
|
|
],
|
|
"group_votes": ["id", "proposal_id", "voter_id", "vote", "voting_power", "voted_at"],
|
|
"group_wallets": [
|
|
"id",
|
|
"group_id",
|
|
"name",
|
|
"description",
|
|
"purpose",
|
|
"bitcoin_address",
|
|
"lightning_address",
|
|
"current_balance_btc",
|
|
"is_active",
|
|
"created_by",
|
|
"required_signatures",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"groups": [
|
|
"id",
|
|
"name",
|
|
"slug",
|
|
"description",
|
|
"label",
|
|
"tags",
|
|
"avatar_url",
|
|
"banner_url",
|
|
"is_public",
|
|
"visibility",
|
|
"bitcoin_address",
|
|
"lightning_address",
|
|
"governance_preset",
|
|
"voting_threshold",
|
|
"created_by",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"idempotency_results": [
|
|
"id",
|
|
"user_id",
|
|
"key",
|
|
"method",
|
|
"path",
|
|
"body_hash",
|
|
"response_status",
|
|
"response_body",
|
|
"created_at",
|
|
"expires_at",
|
|
"status"
|
|
],
|
|
"integration_keys": [
|
|
"id",
|
|
"user_id",
|
|
"actor_id",
|
|
"name",
|
|
"key_hash",
|
|
"key_prefix",
|
|
"created_at",
|
|
"last_used_at",
|
|
"expires_at",
|
|
"revoked_at",
|
|
"scopes",
|
|
"is_test"
|
|
],
|
|
"investments": [
|
|
"id",
|
|
"actor_id",
|
|
"title",
|
|
"description",
|
|
"investment_type",
|
|
"target_amount",
|
|
"minimum_investment",
|
|
"maximum_investment",
|
|
"total_raised",
|
|
"currency",
|
|
"expected_return_rate",
|
|
"return_frequency",
|
|
"term_months",
|
|
"start_date",
|
|
"end_date",
|
|
"status",
|
|
"risk_level",
|
|
"terms",
|
|
"is_public",
|
|
"bitcoin_address",
|
|
"lightning_address",
|
|
"wallet_id",
|
|
"thumbnail_url",
|
|
"created_at",
|
|
"updated_at",
|
|
"show_on_profile",
|
|
"is_test"
|
|
],
|
|
"loan_categories": ["id", "name", "description", "icon", "is_active", "created_at", "updated_at"],
|
|
"loan_collateral": [
|
|
"id",
|
|
"loan_id",
|
|
"asset_id",
|
|
"owner_id",
|
|
"pledged_value",
|
|
"currency",
|
|
"status",
|
|
"created_at"
|
|
],
|
|
"loan_offers": [
|
|
"id",
|
|
"loan_id",
|
|
"offerer_id",
|
|
"offer_type",
|
|
"offer_amount",
|
|
"interest_rate",
|
|
"term_months",
|
|
"monthly_payment",
|
|
"terms",
|
|
"conditions",
|
|
"status",
|
|
"is_binding",
|
|
"expires_at",
|
|
"created_at",
|
|
"updated_at",
|
|
"accepted_at",
|
|
"rejected_at"
|
|
],
|
|
"loan_payments": [
|
|
"id",
|
|
"loan_id",
|
|
"offer_id",
|
|
"amount",
|
|
"currency",
|
|
"payment_type",
|
|
"payer_id",
|
|
"recipient_id",
|
|
"transaction_id",
|
|
"payment_method",
|
|
"notes",
|
|
"status",
|
|
"processed_at",
|
|
"created_at"
|
|
],
|
|
"loans": [
|
|
"id",
|
|
"user_id",
|
|
"title",
|
|
"description",
|
|
"loan_category_id",
|
|
"original_amount",
|
|
"remaining_balance",
|
|
"interest_rate",
|
|
"monthly_payment",
|
|
"currency",
|
|
"lender_name",
|
|
"loan_number",
|
|
"origination_date",
|
|
"maturity_date",
|
|
"status",
|
|
"is_public",
|
|
"is_negotiable",
|
|
"minimum_offer_amount",
|
|
"preferred_terms",
|
|
"contact_method",
|
|
"created_at",
|
|
"updated_at",
|
|
"paid_off_at",
|
|
"actor_id",
|
|
"bitcoin_address",
|
|
"lightning_address",
|
|
"fulfillment_type",
|
|
"current_lender",
|
|
"current_interest_rate",
|
|
"desired_rate",
|
|
"loan_type",
|
|
"amount",
|
|
"is_test",
|
|
"show_on_profile"
|
|
],
|
|
"message_details": [
|
|
"id",
|
|
"conversation_id",
|
|
"sender_id",
|
|
"content",
|
|
"message_type",
|
|
"metadata",
|
|
"created_at",
|
|
"updated_at",
|
|
"is_deleted",
|
|
"edited_at",
|
|
"sender",
|
|
"is_read"
|
|
],
|
|
"message_read_receipts": ["id", "message_id", "user_id", "read_at"],
|
|
"messages": [
|
|
"id",
|
|
"conversation_id",
|
|
"sender_id",
|
|
"content",
|
|
"message_type",
|
|
"metadata",
|
|
"created_at",
|
|
"updated_at",
|
|
"is_deleted",
|
|
"edited_at"
|
|
],
|
|
"notification_email_log": [
|
|
"id",
|
|
"user_id",
|
|
"notification_type",
|
|
"email_address",
|
|
"subject",
|
|
"status",
|
|
"resend_id",
|
|
"metadata",
|
|
"sent_at"
|
|
],
|
|
"notification_preferences": [
|
|
"id",
|
|
"user_id",
|
|
"economic_emails",
|
|
"social_emails",
|
|
"group_emails",
|
|
"progress_emails",
|
|
"reengagement_emails",
|
|
"digest_frequency",
|
|
"type_overrides",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"notifications": [
|
|
"id",
|
|
"user_id",
|
|
"type",
|
|
"message",
|
|
"metadata",
|
|
"is_read",
|
|
"created_at",
|
|
"read_at",
|
|
"action_url"
|
|
],
|
|
"oauth_auth_codes": [
|
|
"id",
|
|
"code_hash",
|
|
"client_id",
|
|
"actor_id",
|
|
"user_id",
|
|
"redirect_uri",
|
|
"scopes",
|
|
"code_challenge",
|
|
"code_challenge_method",
|
|
"nonce",
|
|
"expires_at",
|
|
"consumed_at",
|
|
"created_at"
|
|
],
|
|
"oauth_clients": [
|
|
"id",
|
|
"client_id",
|
|
"client_secret_hash",
|
|
"name",
|
|
"redirect_uris",
|
|
"allowed_scopes",
|
|
"is_confidential",
|
|
"is_trusted",
|
|
"created_at",
|
|
"disabled_at"
|
|
],
|
|
"oauth_refresh_tokens": [
|
|
"id",
|
|
"token_hash",
|
|
"client_id",
|
|
"actor_id",
|
|
"user_id",
|
|
"scopes",
|
|
"expires_at",
|
|
"revoked_at",
|
|
"last_used_at",
|
|
"created_at"
|
|
],
|
|
"oauth_user_grants": ["id", "user_id", "client_id", "scopes", "granted_at"],
|
|
"orders": [
|
|
"id",
|
|
"payment_intent_id",
|
|
"buyer_id",
|
|
"seller_id",
|
|
"entity_type",
|
|
"entity_id",
|
|
"amount_btc",
|
|
"entity_title",
|
|
"status",
|
|
"shipping_address_id",
|
|
"tracking_number",
|
|
"tracking_url",
|
|
"buyer_note",
|
|
"seller_note",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"payment_intents": [
|
|
"id",
|
|
"buyer_id",
|
|
"seller_id",
|
|
"entity_type",
|
|
"entity_id",
|
|
"amount_btc",
|
|
"payment_method",
|
|
"bolt11",
|
|
"payment_hash",
|
|
"onchain_address",
|
|
"status",
|
|
"description",
|
|
"expires_at",
|
|
"paid_at",
|
|
"created_at",
|
|
"updated_at",
|
|
"lnurl_verify_url"
|
|
],
|
|
"platform_api_usage": [
|
|
"id",
|
|
"user_id",
|
|
"usage_date",
|
|
"request_count",
|
|
"token_count",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"post_visibility": [
|
|
"id",
|
|
"post_id",
|
|
"timeline_type",
|
|
"timeline_owner_id",
|
|
"added_by_id",
|
|
"added_at",
|
|
"created_at"
|
|
],
|
|
"profiles": [
|
|
"id",
|
|
"username",
|
|
"avatar_url",
|
|
"website",
|
|
"created_at",
|
|
"updated_at",
|
|
"name",
|
|
"bio",
|
|
"email",
|
|
"phone",
|
|
"location",
|
|
"timezone",
|
|
"language",
|
|
"currency",
|
|
"bitcoin_address",
|
|
"lightning_address",
|
|
"bitcoin_public_key",
|
|
"lightning_node_id",
|
|
"payment_preferences",
|
|
"verification_status",
|
|
"last_login_at",
|
|
"banner_url",
|
|
"status",
|
|
"last_active_at",
|
|
"profile_completed_at",
|
|
"onboarding_completed",
|
|
"terms_accepted_at",
|
|
"privacy_policy_accepted_at",
|
|
"social_links",
|
|
"preferences",
|
|
"metadata",
|
|
"verification_data",
|
|
"privacy_settings",
|
|
"location_search",
|
|
"location_country",
|
|
"location_city",
|
|
"location_zip",
|
|
"latitude",
|
|
"longitude",
|
|
"contact_email",
|
|
"onboarding_wallet_setup_completed",
|
|
"onboarding_first_project_created",
|
|
"onboarding_method",
|
|
"receive_reminders",
|
|
"background"
|
|
],
|
|
"project_categories": [
|
|
"id",
|
|
"name",
|
|
"description",
|
|
"icon",
|
|
"display_order",
|
|
"is_active",
|
|
"metadata",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"project_favorites": ["id", "user_id", "project_id", "created_at"],
|
|
"project_media": ["id", "project_id", "storage_path", "position", "alt_text", "created_at"],
|
|
"project_roles": [
|
|
"id",
|
|
"project_id",
|
|
"role_title",
|
|
"skills",
|
|
"engagement_type",
|
|
"description",
|
|
"status",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"project_support": [
|
|
"id",
|
|
"project_id",
|
|
"user_id",
|
|
"support_type",
|
|
"amount_btc",
|
|
"transaction_hash",
|
|
"lightning_invoice",
|
|
"display_name",
|
|
"message",
|
|
"is_anonymous",
|
|
"reaction_emoji",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"project_support_stats": [
|
|
"project_id",
|
|
"total_bitcoin_btc",
|
|
"total_signatures",
|
|
"total_messages",
|
|
"total_reactions",
|
|
"total_supporters",
|
|
"last_support_at",
|
|
"updated_at"
|
|
],
|
|
"project_updates": ["id", "project_id", "type", "title", "content", "amount_btc", "created_at"],
|
|
"projects": [
|
|
"id",
|
|
"user_id",
|
|
"title",
|
|
"description",
|
|
"goal_amount",
|
|
"currency",
|
|
"funding_purpose",
|
|
"bitcoin_address",
|
|
"lightning_address",
|
|
"category",
|
|
"tags",
|
|
"status",
|
|
"raised_amount",
|
|
"created_at",
|
|
"updated_at",
|
|
"website_url",
|
|
"cover_image_url",
|
|
"contributor_count",
|
|
"creator_id",
|
|
"group_id",
|
|
"actor_id",
|
|
"is_test",
|
|
"show_on_profile",
|
|
"work_status"
|
|
],
|
|
"research_contributions": [
|
|
"id",
|
|
"research_entity_id",
|
|
"user_id",
|
|
"amount_btc",
|
|
"funding_model",
|
|
"message",
|
|
"anonymous",
|
|
"lightning_invoice",
|
|
"onchain_tx",
|
|
"created_at",
|
|
"status",
|
|
"confirmed_at"
|
|
],
|
|
"research_entities": [
|
|
"id",
|
|
"user_id",
|
|
"created_at",
|
|
"updated_at",
|
|
"title",
|
|
"description",
|
|
"field",
|
|
"methodology",
|
|
"expected_outcome",
|
|
"timeline",
|
|
"funding_goal_btc",
|
|
"funding_raised_btc",
|
|
"funding_model",
|
|
"wallet_address",
|
|
"lead_researcher",
|
|
"team_members",
|
|
"open_collaboration",
|
|
"resource_needs",
|
|
"progress_frequency",
|
|
"transparency_level",
|
|
"voting_enabled",
|
|
"current_milestone",
|
|
"next_deadline",
|
|
"impact_areas",
|
|
"target_audience",
|
|
"sdg_alignment",
|
|
"progress_updates",
|
|
"contributions",
|
|
"status",
|
|
"is_public",
|
|
"is_featured",
|
|
"search_vector",
|
|
"metadata",
|
|
"actor_id",
|
|
"show_on_profile"
|
|
],
|
|
"research_progress_updates": [
|
|
"id",
|
|
"research_entity_id",
|
|
"user_id",
|
|
"title",
|
|
"description",
|
|
"milestone_achieved",
|
|
"funding_released",
|
|
"attachments",
|
|
"created_at",
|
|
"votes_up",
|
|
"votes_down",
|
|
"total_votes"
|
|
],
|
|
"research_votes": [
|
|
"id",
|
|
"research_entity_id",
|
|
"user_id",
|
|
"vote_type",
|
|
"choice",
|
|
"weight",
|
|
"created_at"
|
|
],
|
|
"schema_migrations": ["filename", "applied_at"],
|
|
"search_queries": ["id", "query", "result_count", "created_at"],
|
|
"shipping_addresses": [
|
|
"id",
|
|
"user_id",
|
|
"label",
|
|
"full_name",
|
|
"street",
|
|
"street2",
|
|
"city",
|
|
"state",
|
|
"postal_code",
|
|
"country_code",
|
|
"is_default",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"stakeholder_relationships": [
|
|
"id",
|
|
"owner_actor_id",
|
|
"from_project_id",
|
|
"to_actor_id",
|
|
"to_project_id",
|
|
"to_external_url",
|
|
"to_external_name",
|
|
"kind",
|
|
"status",
|
|
"confidence",
|
|
"notes",
|
|
"metadata",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"task_attention_flags": [
|
|
"id",
|
|
"task_id",
|
|
"flagged_by",
|
|
"message",
|
|
"is_resolved",
|
|
"resolved_by",
|
|
"resolved_at",
|
|
"resolved_by_completion_id",
|
|
"created_at"
|
|
],
|
|
"task_completions": [
|
|
"id",
|
|
"task_id",
|
|
"completed_by",
|
|
"completed_at",
|
|
"notes",
|
|
"duration_minutes",
|
|
"created_at"
|
|
],
|
|
"task_projects": [
|
|
"id",
|
|
"title",
|
|
"description",
|
|
"status",
|
|
"target_date",
|
|
"created_by",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"task_requests": [
|
|
"id",
|
|
"task_id",
|
|
"requested_by",
|
|
"requested_user_id",
|
|
"is_broadcast",
|
|
"message",
|
|
"status",
|
|
"response_message",
|
|
"responded_by",
|
|
"completion_id",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"tasks": [
|
|
"id",
|
|
"title",
|
|
"description",
|
|
"instructions",
|
|
"task_type",
|
|
"schedule_cron",
|
|
"schedule_human",
|
|
"category",
|
|
"tags",
|
|
"priority",
|
|
"estimated_minutes",
|
|
"current_status",
|
|
"is_completed",
|
|
"completed_at",
|
|
"completed_by",
|
|
"project_id",
|
|
"created_by",
|
|
"is_archived",
|
|
"created_at",
|
|
"updated_at",
|
|
"due_date",
|
|
"is_reminder"
|
|
],
|
|
"timeline_comments": [
|
|
"id",
|
|
"event_id",
|
|
"user_id",
|
|
"content",
|
|
"content_html",
|
|
"parent_comment_id",
|
|
"created_at",
|
|
"updated_at",
|
|
"is_deleted",
|
|
"deleted_at",
|
|
"deletion_reason"
|
|
],
|
|
"timeline_dislikes": ["id", "event_id", "user_id", "created_at"],
|
|
"timeline_event_stats": [
|
|
"event_id",
|
|
"like_count",
|
|
"dislike_count",
|
|
"comment_count",
|
|
"share_count",
|
|
"view_count",
|
|
"updated_at"
|
|
],
|
|
"timeline_event_visibility": [
|
|
"id",
|
|
"event_id",
|
|
"timeline_type",
|
|
"timeline_owner_id",
|
|
"created_at"
|
|
],
|
|
"timeline_events": [
|
|
"id",
|
|
"event_type",
|
|
"event_subtype",
|
|
"actor_id",
|
|
"actor_type",
|
|
"subject_type",
|
|
"subject_id",
|
|
"target_type",
|
|
"target_id",
|
|
"title",
|
|
"description",
|
|
"content",
|
|
"amount_btc",
|
|
"quantity",
|
|
"location_data",
|
|
"device_info",
|
|
"visibility",
|
|
"is_featured",
|
|
"event_timestamp",
|
|
"created_at",
|
|
"updated_at",
|
|
"metadata",
|
|
"tags",
|
|
"parent_event_id",
|
|
"thread_id",
|
|
"is_deleted",
|
|
"deleted_at",
|
|
"deletion_reason",
|
|
"is_cross_post_duplicate",
|
|
"thread_depth",
|
|
"is_quote_reply"
|
|
],
|
|
"timeline_interactions": ["id", "user_id", "event_id", "interaction_type", "created_at"],
|
|
"timeline_likes": ["id", "event_id", "user_id", "created_at"],
|
|
"timeline_shares": [
|
|
"id",
|
|
"original_event_id",
|
|
"user_id",
|
|
"created_at",
|
|
"share_text",
|
|
"visibility"
|
|
],
|
|
"transactions": [
|
|
"id",
|
|
"amount_btc",
|
|
"currency",
|
|
"from_entity_type",
|
|
"from_entity_id",
|
|
"to_entity_type",
|
|
"to_entity_id",
|
|
"payment_method",
|
|
"purpose",
|
|
"message",
|
|
"anonymous",
|
|
"public_visibility",
|
|
"status",
|
|
"initiated_at",
|
|
"confirmed_at",
|
|
"settled_at",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"transparency_scores": [
|
|
"id",
|
|
"entity_id",
|
|
"entity_type",
|
|
"score",
|
|
"calculation_date",
|
|
"details",
|
|
"audit_notes",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"typing_indicators": ["id", "conversation_id", "user_id", "started_at", "expires_at"],
|
|
"user_ai_preferences": [
|
|
"id",
|
|
"user_id",
|
|
"default_model_id",
|
|
"default_tier",
|
|
"auto_router_enabled",
|
|
"max_cost_btc",
|
|
"require_vision",
|
|
"require_function_calling",
|
|
"onboarding_completed",
|
|
"onboarding_completed_at",
|
|
"onboarding_step",
|
|
"cached_total_requests",
|
|
"cached_total_tokens",
|
|
"cached_total_cost_btc",
|
|
"created_at",
|
|
"updated_at",
|
|
"platform_chain_position"
|
|
],
|
|
"user_api_keys": [
|
|
"id",
|
|
"user_id",
|
|
"provider",
|
|
"key_name",
|
|
"encrypted_key",
|
|
"key_hint",
|
|
"is_valid",
|
|
"is_primary",
|
|
"last_validated_at",
|
|
"last_used_at",
|
|
"total_requests",
|
|
"total_tokens_used",
|
|
"created_at",
|
|
"updated_at",
|
|
"sort_order"
|
|
],
|
|
"user_causes": [
|
|
"id",
|
|
"user_id",
|
|
"title",
|
|
"description",
|
|
"cause_category",
|
|
"goal_amount",
|
|
"currency",
|
|
"bitcoin_address",
|
|
"lightning_address",
|
|
"distribution_rules",
|
|
"beneficiaries",
|
|
"status",
|
|
"total_raised",
|
|
"total_distributed",
|
|
"created_at",
|
|
"updated_at",
|
|
"actor_id",
|
|
"is_test",
|
|
"show_on_profile"
|
|
],
|
|
"user_documents": [
|
|
"id",
|
|
"actor_id",
|
|
"title",
|
|
"content",
|
|
"file_url",
|
|
"file_type",
|
|
"file_size_bytes",
|
|
"document_type",
|
|
"visibility",
|
|
"tags",
|
|
"summary",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"user_economic_profile": [
|
|
"user_id",
|
|
"skills",
|
|
"assets",
|
|
"goals",
|
|
"constraints",
|
|
"asked_for",
|
|
"motivation",
|
|
"stage",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"user_nudges": [
|
|
"id",
|
|
"user_id",
|
|
"nudge_type",
|
|
"title",
|
|
"body",
|
|
"cta_label",
|
|
"cta_url",
|
|
"dedupe_key",
|
|
"score",
|
|
"status",
|
|
"generated_at",
|
|
"dismissed_at"
|
|
],
|
|
"user_plans": [
|
|
"user_id",
|
|
"tier",
|
|
"daily_limit",
|
|
"expires_at",
|
|
"started_at",
|
|
"payment_method",
|
|
"last_invoice_id",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"user_presence": ["user_id", "status", "last_seen_at", "updated_at"],
|
|
"user_products": [
|
|
"id",
|
|
"user_id",
|
|
"title",
|
|
"description",
|
|
"price",
|
|
"currency",
|
|
"product_type",
|
|
"images",
|
|
"thumbnail_url",
|
|
"inventory_count",
|
|
"fulfillment_type",
|
|
"category",
|
|
"tags",
|
|
"status",
|
|
"is_featured",
|
|
"created_at",
|
|
"updated_at",
|
|
"group_id",
|
|
"actor_id",
|
|
"is_test",
|
|
"show_on_profile"
|
|
],
|
|
"user_services": [
|
|
"id",
|
|
"user_id",
|
|
"title",
|
|
"description",
|
|
"category",
|
|
"hourly_rate",
|
|
"fixed_price",
|
|
"currency",
|
|
"duration_minutes",
|
|
"availability_schedule",
|
|
"service_location_type",
|
|
"service_area",
|
|
"images",
|
|
"portfolio_links",
|
|
"status",
|
|
"created_at",
|
|
"updated_at",
|
|
"group_id",
|
|
"actor_id",
|
|
"is_test",
|
|
"show_on_profile"
|
|
],
|
|
"wallets": [
|
|
"id",
|
|
"profile_id",
|
|
"project_id",
|
|
"user_id",
|
|
"label",
|
|
"description",
|
|
"address_or_xpub",
|
|
"wallet_type",
|
|
"category",
|
|
"category_icon",
|
|
"behavior_type",
|
|
"budget_amount",
|
|
"budget_period",
|
|
"goal_amount",
|
|
"goal_currency",
|
|
"goal_deadline",
|
|
"balance_btc",
|
|
"balance_updated_at",
|
|
"is_active",
|
|
"display_order",
|
|
"is_primary",
|
|
"created_at",
|
|
"updated_at",
|
|
"nwc_connection_uri",
|
|
"lightning_address"
|
|
],
|
|
"webhook_deliveries": [
|
|
"id",
|
|
"endpoint_id",
|
|
"event_type",
|
|
"event_id",
|
|
"payload",
|
|
"status",
|
|
"response_status",
|
|
"response_body",
|
|
"attempt_count",
|
|
"last_attempt_at",
|
|
"next_attempt_at",
|
|
"created_at"
|
|
],
|
|
"webhook_endpoints": [
|
|
"id",
|
|
"user_id",
|
|
"actor_id",
|
|
"name",
|
|
"url",
|
|
"secret_prefix",
|
|
"event_types",
|
|
"created_at",
|
|
"last_delivery_at",
|
|
"revoked_at",
|
|
"secret_encrypted"
|
|
],
|
|
"wishlist_contributions": [
|
|
"id",
|
|
"wishlist_item_id",
|
|
"contributor_actor_id",
|
|
"amount_btc",
|
|
"message",
|
|
"is_anonymous",
|
|
"payment_hash",
|
|
"payment_status",
|
|
"created_at",
|
|
"paid_at"
|
|
],
|
|
"wishlist_feedback": [
|
|
"id",
|
|
"wishlist_item_id",
|
|
"fulfillment_proof_id",
|
|
"actor_id",
|
|
"feedback_type",
|
|
"comment",
|
|
"created_at"
|
|
],
|
|
"wishlist_fulfillment_proofs": [
|
|
"id",
|
|
"wishlist_item_id",
|
|
"proof_type",
|
|
"description",
|
|
"image_url",
|
|
"transaction_id",
|
|
"is_verified",
|
|
"created_at"
|
|
],
|
|
"wishlist_item_with_stats": [
|
|
"id",
|
|
"wishlist_id",
|
|
"title",
|
|
"description",
|
|
"image_url",
|
|
"product_id",
|
|
"service_id",
|
|
"external_url",
|
|
"external_source",
|
|
"target_amount_btc",
|
|
"currency",
|
|
"original_amount",
|
|
"funded_amount_btc",
|
|
"is_fully_funded",
|
|
"is_fulfilled",
|
|
"dedicated_wallet_address",
|
|
"use_dedicated_wallet",
|
|
"priority",
|
|
"allow_partial_funding",
|
|
"quantity_wanted",
|
|
"quantity_received",
|
|
"created_at",
|
|
"updated_at",
|
|
"contribution_count",
|
|
"contributor_count",
|
|
"like_count",
|
|
"dislike_count"
|
|
],
|
|
"wishlist_items": [
|
|
"id",
|
|
"wishlist_id",
|
|
"title",
|
|
"description",
|
|
"image_url",
|
|
"product_id",
|
|
"service_id",
|
|
"external_url",
|
|
"external_source",
|
|
"target_amount_btc",
|
|
"currency",
|
|
"original_amount",
|
|
"funded_amount_btc",
|
|
"is_fully_funded",
|
|
"is_fulfilled",
|
|
"dedicated_wallet_address",
|
|
"use_dedicated_wallet",
|
|
"priority",
|
|
"allow_partial_funding",
|
|
"quantity_wanted",
|
|
"quantity_received",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"wishlist_with_stats": [
|
|
"id",
|
|
"actor_id",
|
|
"title",
|
|
"description",
|
|
"type",
|
|
"visibility",
|
|
"is_active",
|
|
"event_date",
|
|
"cover_image_url",
|
|
"created_at",
|
|
"updated_at",
|
|
"item_count",
|
|
"funded_item_count",
|
|
"fulfilled_item_count",
|
|
"total_target_btc",
|
|
"total_funded_btc"
|
|
],
|
|
"wishlists": [
|
|
"id",
|
|
"actor_id",
|
|
"title",
|
|
"description",
|
|
"type",
|
|
"visibility",
|
|
"is_active",
|
|
"event_date",
|
|
"cover_image_url",
|
|
"created_at",
|
|
"updated_at",
|
|
"is_test",
|
|
"show_on_profile"
|
|
]
|
|
}
|