我想标记一个类似于下面的 C# 类。是否有任何工具或库使用反射来创建 mysql 或 sqlite create table 语句?
class MyTable {
public int id;
[FK("User")] //assumes table user, field id. FK("User.id") is just as fine
public int user;
[Index]
public int flags;
[unique]
public string email;
[unique, nullable]
public string something_else;
}