import { EzBackend , EzModel , Type } from '@ezbackend/common' ; import { EzOpenAPI } from '@ezbackend/openapi' ; import { EzDbUI } from '@ezbackend/db-ui' ; import { EzCors } from '@ezbackend/cors' ; const app = new EzBackend ( ) ; app . addApp ( new EzOpenAPI ( ) ) ; app . addApp ( new EzDbUI ( ) ) ; app . addApp ( new EzCors ( ) ) ; const model = new EzModel ( 'ModelName' , { var1 : Type . VARCHAR , var2 : Type . INT , } ) ; app . addApp ( model , { prefix : 'model-route-prefix' } ) ; app . start ( ) ;