-- +goose Up
CREATE TABLE languages (
    code         VARCHAR(10) PRIMARY KEY,
    native_name  TEXT        NOT NULL,
    english_name TEXT        NOT NULL,
    is_active    BOOLEAN     NOT NULL DEFAULT true,
    sort_order   SMALLINT    NOT NULL DEFAULT 0
);
INSERT INTO languages (code, native_name, english_name, sort_order) VALUES
    ('en', 'English',   'English',              1),
    ('ru', 'Русский',   'Russian',              2),
    ('es', 'Español',   'Spanish',              3),
    ('de', 'Deutsch',   'German',               4),
    ('fr', 'Français',  'French',               5),
    ('it', 'Italiano',  'Italian',              6),
    ('pt', 'Português', 'Portuguese',           7),
    ('zh', '中文',      'Chinese (Simplified)', 8),
    ('ja', '日本語',    'Japanese',             9),
    ('ko', '한국어',    'Korean',              10),
    ('ar', 'العربية',  'Arabic',              11),
    ('hi', 'हिन्दी',  'Hindi',               12);

-- +goose Down
DROP TABLE IF EXISTS languages;
