wiki:ERModel

Version 3 (modified by 233062, 3 days ago) ( diff )

--


Податочни барања

Ентитети

  1. User – ентитет кој чува општи информации за сите корисници
  • user_id (bigint)
  • email (text, not null)
  • username (text, not null)
  • password (text, not null)
  1. Finance user – ентитет кој чува финансиски податоци за корисникот
  • user_id* (bigint)
  • spending_budget (numeric)
  • saving_budget (numeric)
  • investing_budget (numeric)
  • donation_budget (numeric)
  • credit (numeric)
  1. Income – ентитет кој чува податоци за месечниот приход
  • income_id (bigint)
  • user_id* (bigint)
  • date (date, not null)
  • amount (numeric, not null)
  1. Training user – ентитет кој чува податоци за тренинг корисниците
  • user_id* (bigint)
  • gender (text)
  • age (integer)
  • weight (numeric)
  1. Training session – ентитет кој чува податоци за тренинг сесиите
  • training_id (bigint)
  • user_id* (bigint)
  • duration (numeric)
  • calories (numeric)
  • date (date)
  • type (text)
  1. Weight user – ентитет кој чува податоци за следење на тежина и калории
  • user_id* (bigint)
  • weight (numeric)
  • height (numeric)
  • goal_weight (numeric)
  • goal_calories (numeric)
  1. Daily intake – ентитет за дневен внес на калории
  • daily_intake_id (bigint)
  • user_id* (bigint)
  • calories (numeric)
  • date (date)
  1. Discipline user – ентитет кој чува податоци за дисциплински навики на корисникот
  • user_id* (bigint)
  • num_tasks (integer)
  • tasks (text)
  1. Task – ентитет за индивидуални задачи
  • task_id (bigint)
  • user_id* (bigint)
  • name (text, not null)
  1. Daily completion – ентитет што бележи дневни извршувања на задачи
  • daily_completion_id (bigint)
  • user_id* (bigint)
  • date (date)
  • procent (numeric)
  1. Investor user – ентитет кој чува податоци за инвеститорски корисници
  • user_id* (bigint)
  1. Asset – ентитет што чува податоци за средства во кои корисникот инвестира
  • asset_id (bigint)
  • user_id* (bigint)
  • ticker_symbol (text, not null)
  • buy_price (numeric)
  • buy_date (date)

Релации

  1. earned_monthly (Finance user ↔ Income, 1:N)

Финансискиот корисник има повеќе записи за приход по месеци.

  1. train (Training user ↔ Training session, 1:N)

Тренинг корисникот може да има повеќе тренинг сесии.

  1. calories_spent (Training session ↔ Weight user, N:1)

Секоја тренинг сесија му припишува изгорени калории на корисникот за тежина.

  1. consumes (Weight user ↔ Daily intake, 1:N)

Корисникот може да внесува дневни калории.

  1. contains (Discipline user ↔ Task, 1:N)

Дисциплински корисник може да има повеќе задачи.

  1. finish (Task ↔ Daily completion, N:M)

Задачите може да бидат извршени дневно и се бележи процент.

  1. owns (Investor user ↔ Asset, 1:N)

Инвеститорскиот корисник може да поседува повеќе средства.

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.