Skip to content

Schema: canvas

Part of the generated database reference.

canvas_collaborators

  • Domain: canvas Β· Feature gate: #[cfg(feature = "canvas")] Β· Migration: 6.5.15.1-consolidated
  • Rust source: botschema/src/canvas.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
canvas_id UUID no β€” FK canvases.id
user_id UUID no β€” β€” β€”
permission VARCHAR(255) no 'view' β€” β€”
added_by UUID yes β€” β€” β€”
added_at TIMESTAMPTZ no NOW() β€” β€”

canvas_comments

  • Domain: canvas Β· Feature gate: #[cfg(feature = "canvas")] Β· Migration: 6.5.15.1-consolidated
  • Rust source: botschema/src/canvas.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
canvas_id UUID no β€” FK canvases.id
element_id UUID yes β€” FK canvas_elements.id
parent_comment_id UUID yes β€” FK canvas_comments.id
author_id UUID no β€” β€” β€”
content TEXT no β€” β€” β€”
x_position DOUBLE PRECISION yes β€” β€” β€”
y_position DOUBLE PRECISION yes β€” β€” β€”
resolved BOOLEAN no FALSE β€” β€”
resolved_by UUID yes β€” β€” β€”
resolved_at TIMESTAMPTZ yes β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
updated_at TIMESTAMPTZ no NOW() β€” β€”

canvas_elements

  • Domain: canvas Β· Feature gate: #[cfg(feature = "canvas")] Β· Migration: 6.5.15.1-consolidated
  • Rust source: botschema/src/canvas.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
canvas_id UUID no β€” FK canvases.id
element_type VARCHAR(255) no β€” β€” β€”
x DOUBLE PRECISION no 0 β€” β€”
y DOUBLE PRECISION no 0 β€” β€”
width DOUBLE PRECISION no 100 β€” β€”
height DOUBLE PRECISION no 100 β€” β€”
rotation DOUBLE PRECISION no 0 β€” β€”
z_index INTEGER no 0 β€” β€”
locked BOOLEAN no FALSE β€” β€”
properties JSONB no '{}' β€” β€”
created_by UUID no β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
updated_at TIMESTAMPTZ no NOW() β€” β€”

canvas_versions

  • Domain: canvas Β· Feature gate: #[cfg(feature = "canvas")] Β· Migration: 6.5.15.1-consolidated
  • Rust source: botschema/src/canvas.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
canvas_id UUID no β€” FK canvases.id
version_number INTEGER no β€” β€” β€”
name VARCHAR(255) yes β€” β€” β€”
elements_snapshot JSONB no '[]' β€” β€”
created_by UUID no β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”

canvases

  • Domain: canvas Β· Feature gate: #[cfg(feature = "canvas")] Β· Migration: 6.5.23-branch-scope-cleanup
  • Rust source: botschema/src/canvas.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
branch_id UUID yes β€” FK branches.id
name VARCHAR(255) no β€” β€” β€”
description TEXT yes β€” β€” β€”
width INTEGER no 1920 β€” β€”
height INTEGER no 1080 β€” β€”
background_color VARCHAR(255) yes '#ffffff' β€” β€”
thumbnail_url TEXT yes β€” β€” β€”
is_public BOOLEAN no FALSE β€” β€”
is_template BOOLEAN no FALSE β€” β€”
created_by UUID no β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
updated_at TIMESTAMPTZ no NOW() β€” β€”
org_id UUID no β€” FK organizations.org_id
bot_id UUID no β€” β€” β€”