@airboat/orm

Full documentation available here.

Usage no npm install needed!

<script type="module">
  import airboatOrm from 'https://cdn.skypack.dev/@airboat/orm';
</script>

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;
}