exercises.sql 424 B

12345678910
  1. CREATE TYPE exercise_type AS ENUM ('WeightedReps', 'BodyweightReps', 'Cardio', 'TimedCardio');
  2. CREATE TABLE exercises (
  3. id UUID PRIMARY KEY DEFAULT gen_uuid_v7(),
  4. workout UUID NOT NULL REFERENCES workouts(id) ON DELETE CASCADE,
  5. name TEXT NOT NULL,
  6. notes TEXT,
  7. exercise_type exercise_type NOT NULL,
  8. position INTEGER NOT NULL
  9. );