43 lines
972 B
JSON
43 lines
972 B
JSON
{
|
|
"project_name": "todo-app",
|
|
"description": "A simple Todo application with CRUD endpoints using FastAPI and SQLite.",
|
|
"entities": [
|
|
{
|
|
"name": "Todo",
|
|
"table_name": "todos",
|
|
"fields": [
|
|
{
|
|
"name": "title",
|
|
"sa_type": "String(255)",
|
|
"py_type": "str",
|
|
"nullable": false,
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "description",
|
|
"sa_type": "Text",
|
|
"py_type": "str | None",
|
|
"nullable": true,
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "due_date",
|
|
"sa_type": "Date",
|
|
"py_type": "date | None",
|
|
"nullable": true,
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "status",
|
|
"sa_type": "String(20)",
|
|
"py_type": "str",
|
|
"nullable": false,
|
|
"default": "pending"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"extra_imports": [
|
|
"from datetime import date"
|
|
]
|
|
} |