Templates/Travel, property & events

Conference database schema

Tracks and sessions with speakers, attendee registrations and session ratings.

7 tables, 7 relationships

Opens as a new diagram you can change. Free.

Tables

conferences

  • iduuid not null
  • nametext not null
  • starts_ondate not null
  • ends_ondate not null
  • citytext not null
  • created_attimestamptz not null

tracks

  • iduuid not null
  • conference_id> conferencesuuid not null
  • nametext not null
  • created_attimestamptz not null

speakers

  • iduuid not null
  • full_nametext not null
  • biotext
  • companytext
  • created_attimestamptz not null

talks

  • iduuid not null
  • track_id> tracksuuid not null
  • titletext not null
  • abstracttext not null
  • starts_attimestamptz not null
  • roomtext not null
  • created_attimestamptz not null

talk_speakers

  • iduuid not null
  • talk_id> talksuuid not null
  • speaker_id> speakersuuid not null
  • created_attimestamptz not null

attendees

  • iduuid not null
  • conference_id> conferencesuuid not null
  • full_nametext not null
  • emailtext not null
  • ticket_kindtext not null
  • created_attimestamptz not null

talk_ratings

  • iduuid not null
  • talk_id> talksuuid not null
  • attendee_id> attendeesuuid not null
  • starsinteger not null
  • created_attimestamptz not null

As PostgreSQL

The same diagram exports to MySQL, MariaDB, SQLite, SQL Server and Oracle, and to Prisma, Drizzle, SQLAlchemy and Convex models.

CREATE TABLE "attendees" (
  "id" UUID DEFAULT gen_random_uuid() NOT NULL,
  "conference_id" UUID NOT NULL,
  "full_name" TEXT NOT NULL,
  "email" TEXT NOT NULL,
  "ticket_kind" TEXT NOT NULL,
  "created_at" TIMESTAMPTZ DEFAULT now() NOT NULL,
  PRIMARY KEY ("id")
);

CREATE TABLE "conferences" (
  "id" UUID DEFAULT gen_random_uuid() NOT NULL,
  "name" TEXT NOT NULL,
  "starts_on" DATE NOT NULL,
  "ends_on" DATE NOT NULL,
  "city" TEXT NOT NULL,
  "created_at" TIMESTAMPTZ DEFAULT now() NOT NULL,
  PRIMARY KEY ("id")
);

CREATE TABLE "speakers" (
  "id" UUID DEFAULT gen_random_uuid() NOT NULL,
  "full_name" TEXT NOT NULL,
  "bio" TEXT,
  "company" TEXT,
  "created_at" TIMESTAMPTZ DEFAULT now() NOT NULL,
  PRIMARY KEY ("id")
);

CREATE TABLE "talk_ratings" (
  "id" UUID DEFAULT gen_random_uuid() NOT NULL,
  "talk_id" UUID NOT NULL,
  "attendee_id" UUID NOT NULL,
  "stars" INTEGER NOT NULL,
  "created_at" TIMESTAMPTZ DEFAULT now() NOT NULL,
  PRIMARY KEY ("id")
);

CREATE TABLE "talk_speakers" (
  "id" UUID DEFAULT gen_random_uuid() NOT NULL,
  "talk_id" UUID NOT NULL,
  "speaker_id" UUID NOT NULL,
  "created_at" TIMESTAMPTZ DEFAULT now() NOT NULL,
  PRIMARY KEY ("id")
);

CREATE TABLE "talks" (
  "id" UUID DEFAULT gen_random_uuid() NOT NULL,
  "track_id" UUID NOT NULL,
  "title" TEXT NOT NULL,
  "abstract" TEXT NOT NULL,
  "starts_at" TIMESTAMPTZ NOT NULL,
  "room" TEXT NOT NULL,
  "created_at" TIMESTAMPTZ DEFAULT now() NOT NULL,
  PRIMARY KEY ("id")
);

CREATE TABLE "tracks" (
  "id" UUID DEFAULT gen_random_uuid() NOT NULL,
  "conference_id" UUID NOT NULL,
  "name" TEXT NOT NULL,
  "created_at" TIMESTAMPTZ DEFAULT now() NOT NULL,
  PRIMARY KEY ("id")
);

ALTER TABLE "tracks" ADD CONSTRAINT "fk_tracks_conference_id" FOREIGN KEY ("conference_id") REFERENCES "conferences" ("id") ON DELETE CASCADE ON UPDATE NO ACTION;

ALTER TABLE "talks" ADD CONSTRAINT "fk_talks_track_id" FOREIGN KEY ("track_id") REFERENCES "tracks" ("id") ON DELETE CASCADE ON UPDATE NO ACTION;

ALTER TABLE "talk_speakers" ADD CONSTRAINT "fk_talk_speakers_talk_id" FOREIGN KEY ("talk_id") REFERENCES "talks" ("id") ON DELETE CASCADE ON UPDATE NO ACTION;

ALTER TABLE "talk_speakers" ADD CONSTRAINT "fk_talk_speakers_speaker_id" FOREIGN KEY ("speaker_id") REFERENCES "speakers" ("id") ON DELETE CASCADE ON UPDATE NO ACTION;

ALTER TABLE "attendees" ADD CONSTRAINT "fk_attendees_conference_id" FOREIGN KEY ("conference_id") REFERENCES "conferences" ("id") ON DELETE CASCADE ON UPDATE NO ACTION;

ALTER TABLE "talk_ratings" ADD CONSTRAINT "fk_talk_ratings_talk_id" FOREIGN KEY ("talk_id") REFERENCES "talks" ("id") ON DELETE CASCADE ON UPDATE NO ACTION;

ALTER TABLE "talk_ratings" ADD CONSTRAINT "fk_talk_ratings_attendee_id" FOREIGN KEY ("attendee_id") REFERENCES "attendees" ("id") ON DELETE CASCADE ON UPDATE NO ACTION;

More Travel, property & events templates

Start with one diagram, free

One diagram with two branches, no card needed. Upgrade when your team needs more.