diff --git a/src/components/Card.tsx b/src/components/Card.tsx
index 13bc04c..1477193 100644
--- a/src/components/Card.tsx
+++ b/src/components/Card.tsx
@@ -100,6 +100,7 @@ const Card = ({ paper, onSelect, isSelected, isShow=true }: CardProps) => {
{paper.slot}
{paper.year}
{paper.semester}
+ {paper.school && {paper.school}}
diff --git a/src/db/papers.ts b/src/db/papers.ts
index c3f8781..3d1fb03 100644
--- a/src/db/papers.ts
+++ b/src/db/papers.ts
@@ -31,6 +31,10 @@ const adminSchema = new Schema({
"Mauritius",
],
},
+ school: {
+ type: String || null,
+ enum: ["SCOPE", "SITE", "SENSE", "SMEC", "SCE", "SELECT", "SAS", "SSL", "VITBS", "SBST","SCORE"],
+ },
answer_key_included: { type: Boolean || null, default: false },
is_selected: { type: Boolean, default: false },
ambiguous_tags: { type: [String], default: [] },
@@ -69,6 +73,10 @@ const paperSchema = new Schema({
],
required: true,
},
+ school: {
+ type: String,
+ enum: ["SCOPE","SITE","SENSE","SMEC","SCE","SELECT","SAS","SSL","VITBS","SBST","SCORE","SCHEME","SHINE","V-SIGN","V-SMART","V-SPARC","VAIAL","HOT"],
+ },
answer_key_included: { type: Boolean, default: false },
});
diff --git a/src/interface.ts b/src/interface.ts
index c64ca35..03b3c93 100644
--- a/src/interface.ts
+++ b/src/interface.ts
@@ -17,6 +17,7 @@ export interface PaperResponse {
year: string;
slot: string;
exam: string;
+ school?: string;
}
export interface IAdminPaper {
@@ -40,6 +41,18 @@ export interface IAdminPaper {
| "Bangalore"
| "Mauritius"
| null;
+ school?:
+ | "SCOPE"
+ | "SITE"
+ | "SENSE"
+ | "SMEC"
+ | "SCE"
+ | "SELECT"
+ | "SAS"
+ | "SSL"
+ | "VITBS"
+ | "SBST"
+ | null;
answer_key_included?: boolean | null;
is_selected?: boolean;
ambiguous_tags: string[];
@@ -94,6 +107,17 @@ export interface IPaper {
| "Bhopal"
| "Bangalore"
| "Mauritius";
+ school?:
+ | "SCOPE"
+ | "SITE"
+ | "SENSE"
+ | "SMEC"
+ | "SCE"
+ | "SELECT"
+ | "SAS"
+ | "SSL"
+ | "VITBS"
+ | "SBST";
slot: string;
subject: string;
year: string;