Good evening,In a 9.5 database I would like players to rate each other and save the reviews in the table:CREATE TABLE words_reviews ( uid integer NOT NULL CHECK (uid <> author) REFERENCES words_users ON DELETE CASCADE, author integer NOT NULL REFERENCES words_users(uid) ON DELETE CASCADE, nice integer NOT NULL CHECK (nice = 0 OR nice = 1), review varchar(255), updated timestamptz NOT NULL, PRIMARY KEY(uid, author));while user names and IP addresses are saved in the other database:CREATE TABLE words_users ( uid SERIAL PRIMARY KEY, ip inet NOT NULL, ..........);
[...] all previous reviews coming from the same IP in the past 24 hours:
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных