We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bacdb6 commit 8a378b6Copy full SHA for 8a378b6
2 files changed
schema/class.sql
@@ -1,7 +1,8 @@
1
CREATE TABLE "public"."class" (
2
- "class_no" integer DEFAULT nextval('public.class_no_seq'::regclass) NOT NULL,
+ "class_no" text DEFAULT nextval('public.class_no_seq'::regclass) NOT NULL,
3
"class_name" text NOT NULL,
4
"grade" integer NOT NULL,
5
+ "student_limit" integer NOT NULL,
6
CONSTRAINT "class_pkey" PRIMARY KEY (class_no),
7
CONSTRAINT "class_grade_check" CHECK (grade > 0 AND grade <= 12)
8
);
schema/student.sql
@@ -4,6 +4,7 @@ CREATE TABLE "public"."student" (
"first_name" text NOT NULL,
"last_name" text NOT NULL,
"gender" text NOT NULL,
+ "email" text NOT NULL,
CONSTRAINT "student_pkey" PRIMARY KEY (student_no),
9
CONSTRAINT "student_gender_check" CHECK (gender = ANY (ARRAY['M'::text, 'F'::text]))
10
0 commit comments