Pipelinen parannuksia building blockeilla

This commit is contained in:
Jaakko Vanhala
2026-04-12 18:48:14 +03:00
parent c1a5f8aff5
commit b2ee8b9031
175 changed files with 13311 additions and 237 deletions

View File

@@ -0,0 +1,90 @@
{
"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"
]
}