Skip to content

Commit 3e9d92c

Browse files
committed
added a seed file
1 parent f100b28 commit 3e9d92c

25 files changed

Lines changed: 477 additions & 1997 deletions

app/admin/layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ const AdminLayout: React.FC<AdminLayoutProps> = ({ children }) => {
3030
setUserRole(role);
3131
} else {
3232
setIsAuthenticated(false);
33-
router.push('/auth/Login');
33+
router.push('/login');
3434
}
3535
} else {
3636
setIsAuthenticated(false);
37-
router.push('/auth/Login');
37+
router.push('/login');
3838
}
3939
} else {
4040
setIsAuthenticated(false);
41-
router.push('/auth/Login');
41+
router.push('/login');
4242
}
4343
setLoading(false);
4444
});

components/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Navbar = () => {
3434
{/* Logo */}
3535
<Link href="/">
3636
<h1 className="text-2xl font-bold text-gray-900 tracking-tight hover:opacity-90 transition-opacity">
37-
Gecian_Hostel
37+
Gecian_Collab
3838
</h1>
3939
</Link>
4040

components/loadingScrenn.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ const LoadingScreen = () => {
2828
secAnim ? "move-left" : " "
2929
}`}
3030
>
31-
Project
31+
Gecian
3232
</span>
3333
{" "}
3434
<span
3535
className={`inline-block bg-gradient-to-r from-blue-500 to-orange-400 bg-clip-text text-transparent ${
3636
secAnim ? "move-right" : " "
3737
}`}
3838
>
39-
Archi
39+
Coll
4040
<span className={`rect-i ${secAnim ? "move-right-i" : ""}`}>
4141
<span
4242
className="dot-i"
4343
onAnimationEnd={handleJumpAnimation}
4444
></span>
4545
</span>
46-
ve
46+
ab
4747
</span>
4848
<span className={`dot-2 ${secAnim? "bounce":" "}`}></span>
4949
</h1>

drizzle/migrations/0000_initial_schema.sql

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
CREATE TABLE "categories" (
2+
"category_id" serial PRIMARY KEY NOT NULL,
3+
"category" varchar(100) NOT NULL
4+
);
5+
--> statement-breakpoint
6+
CREATE TABLE "category_option_values" (
7+
"option_id" serial PRIMARY KEY NOT NULL,
8+
"option_name" varchar(255) NOT NULL,
9+
"category_id" integer
10+
);
11+
--> statement-breakpoint
12+
CREATE TABLE "project_options" (
13+
"id" serial PRIMARY KEY NOT NULL,
14+
"project_id" integer,
15+
"category_id" integer,
16+
"option_id" integer
17+
);
18+
--> statement-breakpoint
19+
CREATE TABLE "projects" (
20+
"project_id" serial PRIMARY KEY NOT NULL,
21+
"project_name" varchar(255) NOT NULL,
22+
"project_description" text,
23+
"project_link" varchar(255),
24+
"created_at" timestamp DEFAULT now(),
25+
"created_by_uid" varchar(255),
26+
"custom_domain" varchar(255),
27+
"contact_instagram" varchar(255),
28+
"contact_linkedin" varchar(255),
29+
"contact_email" varchar(255),
30+
"contact_whatsapp" varchar(255)
31+
);
32+
--> statement-breakpoint
33+
CREATE TABLE "team_members" (
34+
"member_id" serial PRIMARY KEY NOT NULL,
35+
"project_id" integer,
36+
"name" varchar(100),
37+
"linkedin" varchar(255)
38+
);
39+
--> statement-breakpoint
40+
CREATE TABLE "users" (
41+
"uid" varchar(255) PRIMARY KEY NOT NULL,
42+
"user_role" varchar(50) NOT NULL
43+
);
44+
--> statement-breakpoint
45+
ALTER TABLE "category_option_values" ADD CONSTRAINT "category_option_values_category_id_categories_category_id_fk" FOREIGN KEY ("category_id") REFERENCES "public"."categories"("category_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
46+
ALTER TABLE "project_options" ADD CONSTRAINT "project_options_project_id_projects_project_id_fk" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("project_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
47+
ALTER TABLE "project_options" ADD CONSTRAINT "project_options_category_id_categories_category_id_fk" FOREIGN KEY ("category_id") REFERENCES "public"."categories"("category_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
48+
ALTER TABLE "project_options" ADD CONSTRAINT "project_options_option_id_category_option_values_option_id_fk" FOREIGN KEY ("option_id") REFERENCES "public"."category_option_values"("option_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
49+
ALTER TABLE "projects" ADD CONSTRAINT "projects_created_by_uid_users_uid_fk" FOREIGN KEY ("created_by_uid") REFERENCES "public"."users"("uid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
50+
ALTER TABLE "team_members" ADD CONSTRAINT "team_members_project_id_projects_project_id_fk" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("project_id") ON DELETE no action ON UPDATE no action;

drizzle/migrations/0001_initial_schema.sql

Lines changed: 0 additions & 9 deletions
This file was deleted.

drizzle/migrations/0002_seed_data.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

drizzle/migrations/0002_steady_ricochet.sql

Lines changed: 0 additions & 7 deletions
This file was deleted.

drizzle/migrations/0003_fixed_warpath.sql

Lines changed: 0 additions & 16 deletions
This file was deleted.

drizzle/migrations/0004_opposite_avengers.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)