Files
agentic-studio/zipit/template_runs/tmpl_blog/spec.json
2026-04-12 18:48:14 +03:00

90 lines
1.9 KiB
JSON

{
"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"
]
}