import { metaobject } from '@drizzle-team/tento'; export const designers = metaobject({ name: 'Designer', type: 'designer', fieldDefinitions: (f) => ({ fullName: f.singleLineTextField({ name: 'Full Name', required: true, validations: (v) => [v.min(5), v.max(100)], }), description: f.singleLineTextField({ name: 'Description', required: true, validations: (v) => [v.min(5), v.max(300)], }), link: f.url(({ name: 'Link', validations: (v) => [v.allowedDomains(["github.com"])], }), }), });
~ npx tento push - Updated metaobject definition "ORM" ✅ All changes applied