创建一个模型

在 model 目录下新建模型,使用 @Model 注解声明一个模型。模型类必须继承 BaseModel

Image not found

@Model(name = "material", tableName = "wms_material", displayName = "物料", description = "物料信息", isAutoLog = Bool.True)
public class Material extends BaseModel<Material> {
    
    @Property(displayName = "名称", displayForModel = true)
    private String name;
}

然后重启后端服务,进入开发者中心-模型管理,可以查看到这个模型。

Image not found