Commit 70d861a5 authored by CepbluKot's avatar CepbluKot
Browse files

add yandex cloud

parent f9474691
from web_setting import flask_app, ma
from models.all_models import Advertisement, Employer, ApprovedCustomer, Categories, Tags
class EmployerSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Employer
load_instance = True
include_relationships = True
class ApprovedCustomerSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = ApprovedCustomer
load_instance = True
include_relationships = True
class CategoriesSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Categories
load_instance = True
include_relationships = True
class TagsSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Tags
load_instance = True
include_relationships = True
class AdvertisementSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Advertisement
load_instance = True
include_relationships = True
adv_emp = ma.List(ma.Nested(EmployerSchema()))
adv_approvedcast = ma.List(ma.Nested(ApprovedCustomerSchema()))
adv_categories = ma.List(ma.Nested(CategoriesSchema()))
adv_tags = ma.List(ma.Nested(TagsSchema()))
\ No newline at end of file
from web_setting import flask_app, ma
from models.all_models import Customers, Users
\ No newline at end of file
from models.all_models import Customers, Users
"""empty message
Revision ID: 24e5db14a161
Revision ID: ce395d83db3c
Revises:
Create Date: 2022-06-11 08:58:47.406886
Create Date: 2022-06-11 11:36:39.397797
"""
from alembic import op
......@@ -10,7 +10,7 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '24e5db14a161'
revision = 'ce395d83db3c'
down_revision = None
branch_labels = None
depends_on = None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment