Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

功能建议 #67

Open
flowerwOw0316 opened this issue Jan 11, 2025 · 1 comment
Open

功能建议 #67

flowerwOw0316 opened this issue Jan 11, 2025 · 1 comment

Comments

@flowerwOw0316
Copy link

我仅仅是路过,下载了一下这个库体验了一下,可能没有深入了解。

1:可选是生成js文件还是ts文件。
2:pnpm exec sutando model:make这个命令,感觉可以做点手脚,比如读取迁移文件里面的字段,然后默认补进去。
3:建议命令增加seeder,可以用来填充一些假数据。

感谢作者开源,希望越来越好。

@kiddyuchina
Copy link
Member

感谢支持!

  1. 可选文件和 seeder 已经加入开发计划,感谢建议!
  2. 关于生成模型文件的功能,考虑到迁移文件太松散,一些迁移可能只是增改字段,通过迁移文件生成模型文件比较麻烦,所以考虑增加直接连接数据库,读取结构信息来生成模型,这样可能会更为直接和通用。

再次感谢反馈!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants