rf-schemas

    1.2.0 • Public • Published

    rf-schemas

    mongoose-multi schema files for rapidfacture software

    overview

    db.order

    • orders: belong to an account; customer orders;
    • positions: belong to an order; each order holds positions with article text etc. and reference articles
    • scalePrice: belong to an article; the result of a calculation or a manual added price

    db.drawings

    • articles: belong to an account, usual articles like in a shop; currently called "drawings", but will be renamed;

    db.production

    • taskLists: belong to an article; detailed price calculation with tasks

    db.user

    • accounts: bundles multiple users; usually for one customer, for the own company or for one vendor
    • addresses: belong to an account
    • users: belong to an account
    • credentials: belong to an user

    future ideas - cleanup

    db.global: administration

    • settings: all settings: global, for apps, for special purpose
    • sessionSecret: stores only one value
    • cronjobs
    • logs
    • tags: belongs an any item
    • groups

    db.users: organisations and people

    • accounts: bundles multiple users; usually for one customer, for the own company or for one vendor
    • addresses: belong to an account
    • accountInfos: belong to an account
    • users: belong to an account
    • credentials: belong to an user
    • sessions: belong to an user
    • settings: belong to an user
    • userInfos: belong to an user

    db.order: transactions in daily business

    • orders: belong to an account; customer orders;
    • positions: belong to an order; each order holds positions with article text etc. and reference articles
    • shipments
    • discount
    • messages
    • tasks
    • demands

    db.articles: sold/produced items

    • articles: belong to an account, usual articles like in a shop
    • taskLists: belong to an article; detailed price calculation with tasks (was: costcentres)
    • scalePrice: belong to an article; the result of a calculation or a manual added price

    db.production

    • tasks

    testing

    npm test

    Keywords

    none

    Install

    npm i rf-schemas

    DownloadsWeekly Downloads

    89

    Version

    1.2.0

    License

    none

    Unpacked Size

    89.8 kB

    Total Files

    14

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar