1
Fork 0

core: Add document field to meta tables

This commit is contained in:
Steffo 2024-11-15 05:19:50 +01:00
parent 69392bf7e5
commit 3906d03653
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,6 @@
CREATE TABLE meta_aliases ( CREATE TABLE meta_aliases (
id UUID DEFAULT gen_random_uuid(), id UUID DEFAULT gen_random_uuid(),
document BPCHAR NOT NULL,
pattern BPCHAR NOT NULL, pattern BPCHAR NOT NULL,
alias BPCHAR NOT NULL, alias BPCHAR NOT NULL,
@ -9,6 +10,7 @@ CREATE TABLE meta_aliases (
CREATE TABLE meta_links ( CREATE TABLE meta_links (
id UUID DEFAULT gen_random_uuid(), id UUID DEFAULT gen_random_uuid(),
document BPCHAR NOT NULL,
pattern BPCHAR NOT NULL, pattern BPCHAR NOT NULL,
rel BPCHAR NOT NULL, rel BPCHAR NOT NULL,
type BPCHAR, type BPCHAR,
@ -28,6 +30,7 @@ CREATE TABLE meta_link_properties (
CREATE TABLE meta_properties ( CREATE TABLE meta_properties (
id UUID DEFAULT gen_random_uuid(), id UUID DEFAULT gen_random_uuid(),
document BPCHAR NOT NULL,
pattern BPCHAR NOT NULL, pattern BPCHAR NOT NULL,
value BPCHAR, value BPCHAR,

View file

@ -3,6 +3,7 @@
diesel::table! { diesel::table! {
meta_aliases (id) { meta_aliases (id) {
id -> Uuid, id -> Uuid,
document -> Bpchar,
pattern -> Bpchar, pattern -> Bpchar,
alias -> Bpchar, alias -> Bpchar,
} }
@ -20,9 +21,11 @@ diesel::table! {
diesel::table! { diesel::table! {
meta_links (id) { meta_links (id) {
id -> Uuid, id -> Uuid,
document -> Bpchar,
pattern -> Bpchar, pattern -> Bpchar,
rel -> Bpchar, rel -> Bpchar,
r#type -> Nullable<Bpchar>, #[sql_name = "type"]
type_ -> Nullable<Bpchar>,
href -> Nullable<Bpchar>, href -> Nullable<Bpchar>,
} }
} }
@ -30,6 +33,7 @@ diesel::table! {
diesel::table! { diesel::table! {
meta_properties (id) { meta_properties (id) {
id -> Uuid, id -> Uuid,
document -> Bpchar,
pattern -> Bpchar, pattern -> Bpchar,
value -> Nullable<Bpchar>, value -> Nullable<Bpchar>,
} }