Skip to content

Commit

Permalink
Merge pull request #16 from ctc-uci/11-create-class-videos-table
Browse files Browse the repository at this point in the history
Create Class Videos Table
  • Loading branch information
h0ethan04 authored Dec 6, 2024
2 parents 72d20c2 + 7adadd7 commit a9ab9d6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/db/schema/class_videos.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS class_videos CASCADE;

CREATE TABLE class_videos (
id SERIAL PRIMARY KEY,
title VARCHAR(256) NOT NULL,
s3_url VARCHAR(256) NOT NULL,
description TEXT NOT NULL,
media_url TEXT NOT NULL,
class_id INTEGER NOT NULL,
FOREIGN KEY (class_id) REFERENCES classes(id) ON DELETE CASCADE
);

0 comments on commit a9ab9d6

Please sign in to comment.