Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
jobs:
backend:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18]

steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down Expand Up @@ -59,4 +64,4 @@ jobs:

- name: Build Frontend
working-directory: frontend
run: npm run build
run: npm run build
2 changes: 2 additions & 0 deletions backend/src/models/Routine.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const routineSchema = mongoose.Schema(
name: {
type: String,
required: true,
trim: true
},
description: {
type: String,
Expand All @@ -25,6 +26,7 @@ const routineSchema = mongoose.Schema(
day: {
type: String,
required: true,
trim: true,
enum: [
"Monday",
"Tuesday",
Expand Down
3 changes: 3 additions & 0 deletions backend/src/models/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ const taskSchema = mongoose.Schema(
title: {
type: String,
required: true,
trim: true
},
description: {
type: String,
required: false,
trim: true
},
tags: {
type: [String],
required: false,
trim: true
default: [],
},
priority: {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ const userSchema = new mongoose.Schema(

const User = mongoose.model('User', userSchema);

export default User;
export default User;