110 lines
2.5 KiB
JSON
110 lines
2.5 KiB
JSON
{
|
|
"run_id": "tmpl_blog",
|
|
"model": "qwen2.5-coder:7b-instruct-q4_K_M",
|
|
"description": "Blogialusta: käyttäjät voivat luoda artikkeleita ja kommentoida",
|
|
"spec": {
|
|
"project_name": "blogialusta",
|
|
"description": "A blogging platform where users can create articles and comment on them.",
|
|
"entities": [
|
|
{
|
|
"name": "User",
|
|
"table_name": "users",
|
|
"fields": [
|
|
{
|
|
"name": "username",
|
|
"sa_type": "String(255)",
|
|
"py_type": "str",
|
|
"nullable": false,
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "email",
|
|
"sa_type": "String(255)",
|
|
"py_type": "str",
|
|
"nullable": false,
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "password_hash",
|
|
"sa_type": "Text",
|
|
"py_type": "str",
|
|
"nullable": false,
|
|
"default": null
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Article",
|
|
"table_name": "articles",
|
|
"fields": [
|
|
{
|
|
"name": "title",
|
|
"sa_type": "String(255)",
|
|
"py_type": "str",
|
|
"nullable": false,
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "content",
|
|
"sa_type": "Text",
|
|
"py_type": "str",
|
|
"nullable": false,
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "author_id",
|
|
"sa_type": "Integer",
|
|
"py_type": "int",
|
|
"nullable": false,
|
|
"default": null
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Comment",
|
|
"table_name": "comments",
|
|
"fields": [
|
|
{
|
|
"name": "content",
|
|
"sa_type": "Text",
|
|
"py_type": "str",
|
|
"nullable": false,
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "article_id",
|
|
"sa_type": "Integer",
|
|
"py_type": "int",
|
|
"nullable": false,
|
|
"default": null
|
|
},
|
|
{
|
|
"name": "author_id",
|
|
"sa_type": "Integer",
|
|
"py_type": "int",
|
|
"nullable": false,
|
|
"default": null
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"extra_imports": [
|
|
"from datetime import date"
|
|
]
|
|
},
|
|
"files": {
|
|
"models.py": 1175,
|
|
"schemas.py": 613,
|
|
"main.py": 4781,
|
|
"test_main.py": 5488,
|
|
"pyproject.toml": 180,
|
|
"Dockerfile": 339
|
|
},
|
|
"valid": true,
|
|
"docker": {
|
|
"build": true,
|
|
"pytest": true,
|
|
"api": true,
|
|
"errors": []
|
|
}
|
|
} |