Skip to content

Lazlo105/ttest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart_Shift_Scheduler_team5

MongoDB connection

from pymongo import MongoClient

client = MongoClient("mongodb://mongo:27017/")
db = client["auth_demo"]
users = db["users"]
schedules = db["schedules"]

Предлагаются следующие модели, надо поправить/доделать:

DATABASE

User collection

  • username: str
  • password (hashed): str
  • uuid: uuid

Schedule collection

  • uuid: uuid
  • admin_username: str,
  • off_days_per_presone: int
  • start_date: date
  • end_date: date
  • deadline_datetime: datetime

UserRequestedDays collection

  • user: str
  • date: date

UserDays collection

  • user: str
  • date: date

Project structure

Предлагаю:

Smart_shift....team5/
│
├── app/
│   ├── __init__.py
│   ├── models/
│   │   ├── __init__.py
│   │   └── user.py
│   ├── controllers/
│   │   ├── __init__.py
│   │   ├── auth_controller.py
│   │   └── profile_controller.py
│   ├── views/
│   │   ├── __init__.py
│   │   ├── auth_views.py
│   │   └── profile_views.py
│   ├── services/
│   │   ├── __init__.py
│   │   └── file_service.py
│   ├── templates/
│   │   ├── login.html
│   │   ├── register.html
│   │   └── profile.html
│   └── static/
│       └── styles.css
│
├── config.py
├── run.py
└── requirements.txt

В самих файлах можно посмотреть примеры кода как это должно работать

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published