Add service model, route, and logic
This commit is contained in:
parent
4fc1f58f30
commit
e72ec07c45
4 changed files with 108 additions and 1 deletions
13
app/models/service.py
Normal file
13
app/models/service.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from sqlmodel import Field, SQLModel
|
||||
|
||||
|
||||
class Service(SQLModel, table=True):
|
||||
id: int | None = Field(default=None, primary_key=True)
|
||||
|
||||
title: str
|
||||
|
||||
description: str | None = Field(default=None)
|
||||
|
||||
priority: int
|
||||
|
||||
link: str
|
||||
Loading…
Reference in a new issue