mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init install + cleanup code
This commit is contained in:
parent
2485285a06
commit
38288e8a57
28 changed files with 310 additions and 583 deletions
|
|
@ -1,23 +1,8 @@
|
|||
import logging
|
||||
from fastapi import FastAPI
|
||||
import motor.motor_asyncio
|
||||
from sqlmodel import Field, SQLModel, Session, create_engine
|
||||
from sqlmodel import SQLModel, Session, create_engine
|
||||
|
||||
from src.db import (
|
||||
user_organizations,
|
||||
users,
|
||||
roles,
|
||||
organization_settings,
|
||||
organizations,
|
||||
courses,
|
||||
course_authors,
|
||||
chapters,
|
||||
activities,
|
||||
course_chapters,
|
||||
chapter_activities,
|
||||
collections,
|
||||
blocks,
|
||||
)
|
||||
|
||||
engine = create_engine(
|
||||
"postgresql://learnhouse:learnhouse@db:5432/learnhouse", echo=True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue