README
Airboat ORM
Full documentation available here.
import { Model, Table, Joi } from '@airboat/orm';
@Table({ tableName: 'projects', hashKey: 'workspaceId', rangeKey: 'id' })
class Project extends Model.Base {
@Decorators.Attributes.Id()
id:string;
@Decorators.Attributes.Id({required: true})
workspaceId:string;
@Decorators.Attributes.validation(Joi.string().max(100).optional())
name?:string;
}