16 lines
693 B
SQL
16 lines
693 B
SQL
create sequence connections_client_id_int_seq;
|
|
alter table connections add column client_id_int int not null default nextval('connections_client_id_int_seq');
|
|
--ALTER SEQUENCE connections_client_id_int_seq OWNED BY connections.id;
|
|
|
|
create sequence music_sessions_id_int_seq;
|
|
alter table connections add column id_int int not null default nextval('music_sessions_id_int_seq');
|
|
|
|
CREATE TABLE arses (
|
|
id VARCHAR(64) PRIMARY KEY DEFAULT uuid_generate_v4(),
|
|
name VARCHAR(20) NOT NULL,
|
|
id_int SMALLINT,
|
|
public_ip VARCHAR(200),
|
|
active BOOLEAN DEFAULT TRUE,
|
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
); |