status-go/protocol/migrations/sqlite/000003_add_contacts.up.db.sql
Pedro Pombeiro ed5a5c154d
Move to monorepo structure (#1684)
Move to a monorepo structure with submodules

- Rename status-protocol-go to status-go/protocol
2019-11-21 17:19:22 +01:00

15 lines
381 B
SQL

CREATE TABLE contacts (
id TEXT PRIMARY KEY ON CONFLICT REPLACE,
address TEXT NOT NULL,
name TEXT NOT NULL,
ens_verified BOOLEAN DEFAULT FALSE,
ens_verified_at INT NOT NULL DEFAULT 0,
alias TEXT NOT NULL,
identicon TEXT NOT NULL,
photo TEXT NOT NULL,
last_updated INT NOT NULL DEFAULT 0,
system_tags BLOB,
device_info BLOB,
tribute_to_talk TEXT NOT NULL
);