This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE tag ( | |
id serial primary key, | |
name text not null, | |
parent integer references tag(id), | |
unique (parent, name) | |
); | |
CREATE TABLE photo ( | |
id serial primary key, | |
path text not null |