word: maintain wordlist in postgres database
[sheet.git] / tools / word.pg.sql
1 CREATE TABLE word (
2         form       text        NOT NULL,
3         cat        integer              REFERENCES word (id),
4         source     text,
5         thumb      text[],
6         created    timestamptz          DEFAULT now(),
7         id         serial      NOT NULL PRIMARY KEY
8 );
9
10 COMMENT ON COLUMN word.form       IS 'preferred textual representation';
11 COMMENT ON COLUMN word.cat        IS 'hierarchical classification';
12 COMMENT ON COLUMN word.source     IS 'URI of downloaded image';
13 COMMENT ON COLUMN word.thumb      IS 'ImageMagick convert options to create thumbnail from source image';