CREATE TABLE Casts (
id int8 NOT NULL PRIMARY KEY,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
deleted_at timestamp,
timestamp timestamp NOT NULL,
fid int8 NOT NULL,
hash bytea NOT NULL,
parent_hash bytea,
parent_fid int8,
parent_url text,
text text NOT NULL,
embeds text NOT NULL DEFAULT '{}',
mentions int8 NOT NULL DEFAULT '{}',
mentions_positions int2 NOT NULL DEFAULT '{}'
);
CREATE TABLE Casts (
id int8 NOT NULL PRIMARY KEY,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
deleted_at timestamp,
timestamp timestamp NOT NULL,
fid int8 NOT NULL,
hash bytea NOT NULL,
parent_hash bytea,
parent_fid int8,
parent_url text,
text text NOT NULL,
embeds text NOT NULL DEFAULT '{}',
mentions int8 NOT NULL DEFAULT '{}',
mentions_positions int2 NOT NULL DEFAULT '{}'
);