CONSTRAINT [fk_fato_sellin_produto] FOREIGN KEY ([produto_id]) REFERENCES [$(DB_SCHEMA)].[dim_produto]([id]), CONSTRAINT [fk_fato_sellin_rede] FOREIGN KEY ([rede_id ...
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(), updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() -- Index cho các trường thường query CREATE INDEX IF NOT EXISTS idx_accounts_email ON accounts ...
Supabaseは内部でPostgreSQLを使用しているため、テーブル定義のインポートには基本的にSQL形式(DDL:データ定義言語)が用いられます (Declarative database schemas | Supabase Docs)。実際、Supabaseのマイグレーション機能でもテーブル作成などの変更はSQLファイルとして ...
YAML – **Like JSON, there is no feature to create tables directly from YAML format.** Supabase itself has no mechanism to load YAML schemas, and if you use YAML, you must manually convert it to SQL.