Remove default struct properties and set all unique keys to not null.

This commit is contained in:
0x24d 2021-11-20 12:51:05 +00:00
parent 188a7dd9e6
commit 6467ea14b0
2 changed files with 4 additions and 4 deletions

View file

@ -5,8 +5,8 @@
CREATE TABLE IF NOT EXISTS public.channel_continuations CREATE TABLE IF NOT EXISTS public.channel_continuations
( (
id text NOT NULL, id text NOT NULL,
page integer, page integer NOT NULL,
sort_by text, sort_by text NOT NULL,
continuation text, continuation text,
CONSTRAINT channel_continuations_id_page_sort_by_key UNIQUE (id, page, sort_by) CONSTRAINT channel_continuations_id_page_sort_by_key UNIQUE (id, page, sort_by)
); );

View file

@ -12,8 +12,8 @@ struct ChannelContinuation
include DB::Serializable include DB::Serializable
property id : String property id : String
property page : Int32 = 0 property page : Int32
property sort_by : String = "newest" property sort_by : String
property continuation : String property continuation : String
def to_tuple def to_tuple