AppFlowy/backend/migrations/20210824033748_view.sql
2021-08-25 17:34:20 +08:00

13 lines
401 B
SQL

-- Add migration script here
CREATE TABLE IF NOT EXISTS view_table(
id uuid NOT NULL,
PRIMARY KEY (id),
belong_to_id TEXT NOT NULL,
name TEXT NOT NULL,
description TEXT NOT NULL,
modified_time timestamptz NOT NULL,
create_time timestamptz NOT NULL,
thumbnail TEXT NOT NULL,
view_type INTEGER NOT NULL,
is_trash BOOL NOT NULL DEFAULT false
);