heart2heart/scheme.psql

14 lines
496 B
Plaintext

CREATE TABLE IF NOT EXISTS users(
mx_id VARCHAR(64),
room_id VARCHAR(64) UNIQUE,
pictures_urls TEXT[] DEFAULT NULL,
name VARCHAR(32) DEFAULT NULL,
age SMALLINT DEFAULT NULL,
gender BOOLEAN, -- 1 means male
interest VARCHAR(6), -- male, female or both
description VARCHAR(512) DEFAULT NULL,
country VARCHAR(64) DEFAULT NULL,
city VARCHAR(64) DEFAULT NULL,
current_action VARCHAR(16) DEFAULT NULL,
currently_viewing VARCHAR(64) --link to "room_id"
);