VRFS-82 band invitation development
This commit is contained in:
parent
b635d3799c
commit
ad14343c52
3
manifest
3
manifest
|
|
@ -23,4 +23,5 @@ as_musician.sql
|
|||
bootstrap_users_v3.sql
|
||||
update_user_band_fields.sql
|
||||
add_recording_creator_id.sql
|
||||
make_location_nullable.sql
|
||||
make_location_nullable.sql
|
||||
band_invitations.sql
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
CREATE TABLE band_invitations (
|
||||
id VARCHAR(64) PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
user_id VARCHAR(64) REFERENCES users(id) ON DELETE CASCADE,
|
||||
band_id VARCHAR(64) REFERENCES bands(id) ON DELETE CASCADE,
|
||||
accepted BOOLEAN,
|
||||
creator_id VARCHAR(64) REFERENCES users(id) ON DELETE CASCADE,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
Loading…
Reference in New Issue