0002_venue.sql 675 B

123456789101112131415161718
  1. CREATE TYPE status AS ENUM ('op!en', 'clo@sed');
  2. COMMENT ON TYPE status IS 'Venues can be either open or closed';
  3. CREATE TABLE venues (
  4. id SERIAL primary key,
  5. dropped text,
  6. status status not null,
  7. statuses status[],
  8. slug text not null,
  9. name varchar(255) not null,
  10. city text not null references city(slug),
  11. spotify_playlist varchar not null,
  12. songkick_id text,
  13. tags text[]
  14. );
  15. COMMENT ON TABLE venues IS 'Venues are places where muisc happens';
  16. COMMENT ON COLUMN venues.slug IS 'This value appears in public URLs';