Pipelinen parannuksia building blockeilla
This commit is contained in:
90
zipit/template_runs/tmpl_blog/spec.json
Normal file
90
zipit/template_runs/tmpl_blog/spec.json
Normal 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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user