1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-07 22:45:22 +02:00

feature/multi-tenancy and move caddy server (#980)

* update to GUIDs

* fix cookbook id relationships

* update webhook keys

* cleanup naming and attribute orders

* remove old database tables

* fix meal-plan images

* remove dashbaord and events api

* use recipe-id instead of id

* cleanup documentation assets

* cleanup docs for v1 beta-release

* add depends_on for docker-compose

* use docker volumes for examples

* move caddy to frontend container
This commit is contained in:
Hayden 2022-02-20 14:17:51 -09:00 committed by GitHub
parent 14cc541f7a
commit 602f248541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
91 changed files with 187 additions and 1170 deletions

View file

@ -28,7 +28,7 @@ class SaveCookBook(CreateCookBook):
class UpdateCookBook(SaveCookBook):
id: int
id: UUID4
class ReadCookBook(UpdateCookBook):

View file

@ -1,2 +0,0 @@
# GENERATED CODE - DO NOT MODIFY BY HAND
from .events import *

View file

@ -1,37 +0,0 @@
from datetime import datetime
from enum import Enum
from typing import Optional
from fastapi_camelcase import CamelModel
from pydantic import Field
class EventCategory(str, Enum):
general = "general"
recipe = "recipe"
backup = "backup"
scheduled = "scheduled"
migration = "migration"
group = "group"
user = "user"
class Event(CamelModel):
id: Optional[int]
title: str
text: str
time_stamp: datetime = Field(default_factory=datetime.now)
category: EventCategory = EventCategory.general
class Config:
orm_mode = True
class EventsOut(CamelModel):
total: int
events: list[Event]
class TestEvent(CamelModel):
id: Optional[int]
test_url: Optional[str]

View file

@ -1,6 +1,7 @@
from uuid import UUID
from fastapi_camelcase import CamelModel
from pydantic import UUID4
class UpdateGroupPreferences(CamelModel):
@ -21,7 +22,7 @@ class CreateGroupPreferences(UpdateGroupPreferences):
class ReadGroupPreferences(CreateGroupPreferences):
id: int
id: UUID4
class Config:
orm_mode = True

View file

@ -1,6 +1,7 @@
from uuid import UUID
from fastapi_camelcase import CamelModel
from pydantic import UUID4
class CreateWebhook(CamelModel):
@ -15,7 +16,7 @@ class SaveWebhook(CreateWebhook):
class ReadWebhook(SaveWebhook):
id: int
id: UUID4
class Config:
orm_mode = True

View file

@ -1,6 +1,5 @@
# GENERATED CODE - DO NOT MODIFY BY HAND
from .auth import *
from .registration import *
from .sign_up import *
from .user import *
from .user_passwords import *

View file

@ -1,17 +0,0 @@
from fastapi_camelcase import CamelModel
class SignUpIn(CamelModel):
name: str
admin: bool
class SignUpToken(SignUpIn):
token: str
class SignUpOut(SignUpToken):
id: int
class Config:
orm_mode = True