You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encountered in the sample application schema for Mouthful located in experiments/schema-annot/annotated/mouthful-annotated.sql
K9db cannot accurately capture the Author column in the Comment table which refers to a data subject that owns all data. (The entire application contains just two tables: Comment and Thread).
CREATETABLEThread(
Id intPRIMARY KEY,
CreatedAt datetime not null,
Pathtextnot null
);
CREATETABLEComment(
Id intPRIMARY KEY,
ThreadId intnot null,
Body textnot null,
Author textnot null,
Confirmed intnot null,
CreatedAt datetime not null,
ReplyTo intnot null,
DeletedAt datetime not null,
FOREIGN KEY(ThreadId) references Thread(Id),
);
Work around: modify schema by adding a separate user table
CREATE DATA_SUBJECT TABLE user (
id textPRIMARY KEY
);
and then adding a foreign key to user(id) in Comment
FOREIGN KEY(Author) OWNED_BY user(id)
The text was updated successfully, but these errors were encountered:
Encountered in the sample application schema for Mouthful located in
experiments/schema-annot/annotated/mouthful-annotated.sql
K9db cannot accurately capture the
Author
column in theComment
table which refers to a data subject that owns all data. (The entire application contains just two tables:Comment
andThread
).Work around: modify schema by adding a separate user table
and then adding a foreign key to
user(id)
inComment
FOREIGN KEY(Author) OWNED_BY user(id)
The text was updated successfully, but these errors were encountered: