status-go/protocol/migrations/sqlite/1698137561_add_profile_showcase_tables.up.sql
Mikhail Rogachev 1be356af93
feat: Profile showcase backend (#4005)
* feat: profile showcase preferences basic impl

(squashed)

* feat: save preferences in batch for profile showcase

* chore: add validation for profile showcase settings request

and fix migration order
2023-10-24 14:43:18 +04:00

14 lines
440 B
SQL

CREATE TABLE IF NOT EXISTS profile_showcase_preferences (
id TEXT PRIMARY KEY ON CONFLICT REPLACE,
entry_type INT NOT NULL DEFAULT 0,
visibility INT NOT NULL DEFAULT 0,
sort_order INT NOT NULL DEFAULT 0
);
CREATE TABLE IF NOT EXISTS profile_showcase_contacts (
contact_id TEXT PRIMARY KEY ON CONFLICT REPLACE,
entry_id TEXT NOT NULL,
entry_type INT NOT NULL DEFAULT 0,
entry_order INT NOT NULL DEFAULT 0
);