sz-rust-cli 1.4.0

SZ-Rust 命令行工具:项目脚手架、数据库迁移、调度器管理
Documentation
1
2
3
4
5
6
7
8
9
-- Generated by sz-rust-cli make:plugin --template {{ template_type }} --name {{ plugin_name }}
-- Generation time: {{ generated_at }}
-- DO NOT EDIT MANUALLY — regenerate with `sz-rust-cli make:plugin --force ...`

CREATE TABLE IF NOT EXISTS {% block table_name %}{{ table_name }}{% endblock %} (
{%- for field in fields %}
    {{ field.name }} {{ field.sql_type }}{% if field.is_primary_key %} PRIMARY KEY{% endif %}{% if not field.is_nullable %} NOT NULL{% endif %}{% if not loop.last %},{% endif %}
{%- endfor %}
);