Program/mooc/schemas/rule.py

18 lines
287 B
Python
Raw Normal View History

from pydantic import BaseModel
class RuleBase(BaseModel):
Uniacid: int
Name: str
Module: str
Displayorder: int
Status: int
Containtype: str
class RuleCreate(RuleBase):
pass
class Rule(RuleBase):
Id: int
class Config:
from_attributes = True