heart2heart/scheme.psql

16 lines
591 B
Plaintext
Raw Normal View History

2024-08-03 03:48:20 +03:00
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,
sex CHAR, -- 'm' of 'f'
interest CHAR, -- male, female or both ('m', 'f' and 'b')
2024-08-03 03:48:20 +03:00
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"
liked_profiles TEXT[], -- link to "room_id"
likes_from TEXT[] -- link to room_id
2024-08-03 03:48:20 +03:00
);