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

sql 文件? #2

Open
mutousay opened this issue Jul 12, 2022 · 1 comment
Open

sql 文件? #2

mutousay opened this issue Jul 12, 2022 · 1 comment

Comments

@mutousay
Copy link

没看到数据库建表的sql文件呀。。

@aliliin
Copy link
Contributor

aliliin commented Jul 12, 2022

没看到数据库建表的sql文件呀。。

internal/data/*.go 文件跟 grom 相关的就是 sql 表结构字段。
internal/data/data.go 文件内的 InitDB 方法就是创建表的方法。

建议看看 GORM 的文档。

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