{"id":38369356,"url":"https://github.com/doutivity/research-forum-go","last_synced_at":"2026-01-17T03:26:26.889Z","repository":{"id":207249950,"uuid":"718386568","full_name":"doutivity/research-forum-go","owner":"doutivity","description":"DOU Forum on PostgreSQL","archived":false,"fork":false,"pushed_at":"2024-02-27T20:58:49.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-06-19T19:37:21.338Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doutivity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-14T01:00:20.000Z","updated_at":"2023-12-22T00:42:43.000Z","dependencies_parsed_at":"2023-11-14T21:27:23.017Z","dependency_job_id":"7918118d-7d36-4a87-8f73-a08370d67867","html_url":"https://github.com/doutivity/research-forum-go","commit_stats":null,"previous_names":["doutivity/research-forum-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/doutivity/research-forum-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doutivity%2Fresearch-forum-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doutivity%2Fresearch-forum-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doutivity%2Fresearch-forum-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doutivity%2Fresearch-forum-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doutivity","download_url":"https://codeload.github.com/doutivity/research-forum-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doutivity%2Fresearch-forum-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T03:26:26.348Z","updated_at":"2026-01-17T03:26:26.875Z","avatar_url":"https://github.com/doutivity.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DOU Forum on PostgreSQL\n- [Збереження стану онлайну користувача в Redis](https://dou.ua/forums/topic/35260/)\n- [Hash, Set чи Sorted set. Який тип даних вибрати для збереження стану онлайну користувача в Redis?](https://dou.ua/forums/topic/44655/)\n- [Batch UPDATE в PostgreSQL](https://dou.ua/forums/topic/35261/)\n\n# Support Ukraine 🇺🇦\n- Help Ukraine via [SaveLife fund](https://savelife.in.ua/en/donate-en/)\n- Help Ukraine via [Dignitas fund](https://dignitas.fund/donate/)\n- Help Ukraine via [National Bank of Ukraine](https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi)\n- More info on [war.ukraine.ua](https://war.ukraine.ua/) and [MFA of Ukraine](https://twitter.com/MFA_Ukraine)\n\n# Testing\n```bash\nmake env-up\nmake docker-go-version\nmake docker-pg-version\nmake migrate-up\nmake go-test\nmake env-down\n```\n\n# Schema\n```sql\nCREATE TABLE users\n(\n    user_id  BIGSERIAL NOT NULL PRIMARY KEY,\n    username VARCHAR   NOT NULL UNIQUE\n);\n\nCREATE TABLE topics\n(\n    topic_id   BIGSERIAL                NOT NULL PRIMARY KEY,\n    title      VARCHAR                  NOT NULL,\n    content    VARCHAR                  NOT NULL,\n    created_at TIMESTAMP WITH TIME ZONE NOT NULL,\n    created_by BIGINT                   NOT NULL REFERENCES users (user_id),\n    updated_at TIMESTAMP WITH TIME ZONE NOT NULL,\n    updated_by BIGINT                   NOT NULL REFERENCES users (user_id),\n    deleted_at TIMESTAMP WITH TIME ZONE NULL,\n    deleted_by BIGINT                   NULL REFERENCES users (user_id)\n);\n\nCREATE TABLE comments\n(\n    comment_id        BIGSERIAL                NOT NULL PRIMARY KEY,\n    parent_comment_id BIGINT                   NULL REFERENCES comments (comment_id),\n    topic_id          BIGINT                   NOT NULL REFERENCES topics (topic_id),\n    content           VARCHAR                  NOT NULL,\n    created_at        TIMESTAMP WITH TIME ZONE NOT NULL,\n    created_by        BIGINT                   NOT NULL REFERENCES users (user_id),\n    updated_at        TIMESTAMP WITH TIME ZONE NOT NULL,\n    updated_by        BIGINT                   NOT NULL REFERENCES users (user_id),\n    deleted_at        TIMESTAMP WITH TIME ZONE NULL,\n    deleted_by        BIGINT                   NULL REFERENCES users (user_id)\n);\n\nCREATE TABLE likes\n(\n    comment_id BIGINT                   NOT NULL REFERENCES comments (comment_id),\n    active     BOOLEAN                  NOT NULL,\n    created_at TIMESTAMP WITH TIME ZONE NOT NULL,\n    created_by BIGINT                   NOT NULL REFERENCES users (user_id),\n    updated_at TIMESTAMP WITH TIME ZONE NOT NULL,\n    updated_by BIGINT                   NOT NULL REFERENCES users (user_id),\n    PRIMARY KEY (comment_id, created_by)\n);\n\nCREATE TABLE last_read_comments\n(\n    user_id    BIGINT NOT NULL REFERENCES users (user_id),\n    topic_id   BIGINT NOT NULL REFERENCES topics (topic_id),\n    comment_id BIGINT NOT NULL REFERENCES comments (comment_id),\n    PRIMARY KEY (user_id, topic_id)\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoutivity%2Fresearch-forum-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoutivity%2Fresearch-forum-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoutivity%2Fresearch-forum-go/lists"}