word edit: prio(rity level) column input
[sheet.git] / tools / word.pg.sql
1 CREATE TABLE word (
2         form       text        NOT NULL,
3         lang       text        NOT NULL DEFAULT 'eng',
4         cat        integer              REFERENCES word (id),
5         ref        integer              REFERENCES word (id),
6         prio       smallint    NOT NULL DEFAULT '1',
7         source     text,
8         thumb      text[],
9         wptitle    text,
10         created    timestamptz          DEFAULT now(),
11         id         serial      NOT NULL PRIMARY KEY
12 );
13
14 COMMENT ON COLUMN word.form       IS 'preferred textual representation';
15 COMMENT ON COLUMN word.lang       IS 'ISO 639-3 language code';
16 COMMENT ON COLUMN word.cat        IS 'hierarchical classification';
17 COMMENT ON COLUMN word.ref        IS 'reference to equivalent eng translation';
18 COMMENT ON COLUMN word.prio       IS 'difficulty level or importance; lower values have precedence';
19 COMMENT ON COLUMN word.source     IS 'URI of downloaded image';
20 COMMENT ON COLUMN word.thumb      IS 'ImageMagick convert options to create thumbnail from source image';
21 COMMENT ON COLUMN word.wptitle    IS 'reference Wikipedia article';