parsav  Diff

Differences From Artifact [72a3e65e6e]:

To Artifact [347a4ab533]:


82
83
84
85
86
87
88
89
90
91
92
93

94
95
96
97
98
99
100
	kind    smallint, -- e.g. follow, block, mute

	primary key (relator, relatee, kind)
);

create table parsav_acts (
	id      bigint primary key default (1+random()*(2^63-1))::bigint,
	kind    text not null, -- like, react, so on
	time    timestamp not null default now(),
	actor   bigint references parsav_actors(id)
		on delete cascade,
	subject bigint -- may be post or act, depending on kind

);

create table parsav_log (
	-- accesses are tracked for security & sending delete acts
	id    bigint primary key default (1+random()*(2^63-1))::bigint,
	time  timestamp not null default now(),
	actor bigint references parsav_actors(id)







|



|
>







82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
	kind    smallint, -- e.g. follow, block, mute

	primary key (relator, relatee, kind)
);

create table parsav_acts (
	id      bigint primary key default (1+random()*(2^63-1))::bigint,
	kind    text not null, -- like, rt, react, so on
	time    timestamp not null default now(),
	actor   bigint references parsav_actors(id)
		on delete cascade,
	subject bigint, -- may be post or act, depending on kind
	body	text -- emoji, if react
);

create table parsav_log (
	-- accesses are tracked for security & sending delete acts
	id    bigint primary key default (1+random()*(2^63-1))::bigint,
	time  timestamp not null default now(),
	actor bigint references parsav_actors(id)