bachpx195 / daily_trading_journal

Nhật kí giao dịch
4 stars 4 forks source link

Thiết kế database #1

Open bachpx195 opened 5 years ago

bachpx195 commented 5 years ago

Tạo thiết kế database cùng các ý tưởng cho dự án

bachpx195 commented 5 years ago

database V1: https://to.ly/1zhzj V1_ Following Coin

bachpx195 commented 5 years ago

Migrate: rails generate model CoinCategory name:string description:text rails generate model Coin slug:string title:string description:text code:string rank:integer meta_title:string market_cap_usd:float price_usd:float coin_category:references rails generate model CoinSource title:string domain_slug:string website:string coin:references rails generate model New url:string domain:string rails generate model NewCategory name:string description:text rails generate model New url:string domain:string short_description:text tilte:string published_at:date status:integer intended_date:date new_category:references rails generate model Tag name:string description:text rails generate model NewsTag new:references tag:references rails generate model NewSite domanin:string description:text rails generate model DailyReport date:date coin:references new:references result rails g model comment content:text commentable_id:integer:index commentable_type:index

bachpx195 commented 5 years ago

V1_ Following Coin (1)

bachpx195 commented 5 years ago

V1_ Following Coin

bachpx195 commented 5 years ago

rails generate scaffold Fund initial_capital:float present_value:float future_value:float desposit:float withdraw:float rate_of_growth:float rails generate scaffold TradeMethod name:string win_rate:float rule:text

bachpx195 commented 3 years ago

rails generate scaffold SystemConfig key:string value:float value_type:integer

bachpx195 commented 3 years ago

easily generate a diagram based on your application's Active Record models. https://github.com/voormedia/rails-erd

bundle exec erd

bachpx195 commented 3 years ago

rails generate model PlanMerchandiseRate merchandise_rate:references plan:references