core
: Add document field to meta tables
This commit is contained in:
parent
69392bf7e5
commit
3906d03653
2 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
CREATE TABLE meta_aliases (
|
||||
id UUID DEFAULT gen_random_uuid(),
|
||||
document BPCHAR NOT NULL,
|
||||
pattern BPCHAR NOT NULL,
|
||||
alias BPCHAR NOT NULL,
|
||||
|
||||
|
@ -9,6 +10,7 @@ CREATE TABLE meta_aliases (
|
|||
|
||||
CREATE TABLE meta_links (
|
||||
id UUID DEFAULT gen_random_uuid(),
|
||||
document BPCHAR NOT NULL,
|
||||
pattern BPCHAR NOT NULL,
|
||||
rel BPCHAR NOT NULL,
|
||||
type BPCHAR,
|
||||
|
@ -28,6 +30,7 @@ CREATE TABLE meta_link_properties (
|
|||
|
||||
CREATE TABLE meta_properties (
|
||||
id UUID DEFAULT gen_random_uuid(),
|
||||
document BPCHAR NOT NULL,
|
||||
pattern BPCHAR NOT NULL,
|
||||
value BPCHAR,
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
diesel::table! {
|
||||
meta_aliases (id) {
|
||||
id -> Uuid,
|
||||
document -> Bpchar,
|
||||
pattern -> Bpchar,
|
||||
alias -> Bpchar,
|
||||
}
|
||||
|
@ -20,9 +21,11 @@ diesel::table! {
|
|||
diesel::table! {
|
||||
meta_links (id) {
|
||||
id -> Uuid,
|
||||
document -> Bpchar,
|
||||
pattern -> Bpchar,
|
||||
rel -> Bpchar,
|
||||
r#type -> Nullable<Bpchar>,
|
||||
#[sql_name = "type"]
|
||||
type_ -> Nullable<Bpchar>,
|
||||
href -> Nullable<Bpchar>,
|
||||
}
|
||||
}
|
||||
|
@ -30,6 +33,7 @@ diesel::table! {
|
|||
diesel::table! {
|
||||
meta_properties (id) {
|
||||
id -> Uuid,
|
||||
document -> Bpchar,
|
||||
pattern -> Bpchar,
|
||||
value -> Nullable<Bpchar>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue