1
Fork 0
tirocinio-canali-steffo-acrate/acrate-core/migrations/2024-11-14-031744_meta/up.sql

36 lines
663 B
MySQL
Raw Normal View History

2024-11-15 01:04:15 +00:00
CREATE TABLE meta_aliases (
id UUID DEFAULT gen_random_uuid(),
pattern BPCHAR NOT NULL,
alias BPCHAR NOT NULL,
CONSTRAINT unique_aliases UNIQUE (alias),
PRIMARY KEY (id)
);
2024-11-15 01:04:15 +00:00
CREATE TABLE meta_links (
id UUID DEFAULT gen_random_uuid(),
pattern BPCHAR NOT NULL,
rel BPCHAR NOT NULL,
type BPCHAR,
href BPCHAR,
PRIMARY KEY (id)
);
2024-11-15 01:04:15 +00:00
CREATE TABLE meta_link_properties (
id UUID DEFAULT gen_random_uuid(),
meta_link_id UUID REFERENCES meta_links (id) NOT NULL,
rel BPCHAR NOT NULL,
value BPCHAR,
PRIMARY KEY (id)
);
2024-11-15 01:04:15 +00:00
CREATE TABLE meta_properties (
id UUID DEFAULT gen_random_uuid(),
pattern BPCHAR NOT NULL,
value BPCHAR,
PRIMARY KEY (id)
);