Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C calculadora-wiki
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Calculadora
  • calculadora-wiki
  • Wiki
  • banco_dados

banco_dados · Changes

Page history
Update banco_dados authored Sep 14, 2020 by Hercilio Martins Ortiz's avatar Hercilio Martins Ortiz
Hide whitespace changes
Inline Side-by-side
banco_dados.md
View page @ 79d9f916
...@@ -17,7 +17,7 @@ export interface User { ...@@ -17,7 +17,7 @@ export interface User {
document: string, // cpf, coop_code document: string, // cpf, coop_code
role: string // Enum { 'associate', 'admin', 'cooperative' } role: string // Enum { 'associate', 'admin', 'cooperative' }
agency: 'ObjectID' // agency id agency: 'ObjectID' // agency id
products: 'ObjectID'[] // products ids // products: 'ObjectID'[] // products ids
} }
export interface Cooperative { export interface Cooperative {
...@@ -25,7 +25,7 @@ export interface Cooperative { ...@@ -25,7 +25,7 @@ export interface Cooperative {
name: string, name: string,
document: string, // cnpj document: string, // cnpj
anualResults: 'ObjectID'[], // anual results ids anualResults: 'ObjectID'[], // anual results ids
products: 'ObjectID'[] // products ids products: 'ObjectID'[] // CooperativeProduct ids
} }
export interface AnualResults { export interface AnualResults {
...@@ -35,11 +35,16 @@ export interface AnualResults { ...@@ -35,11 +35,16 @@ export interface AnualResults {
result: number // category id result: number // category id
} }
export interface Product { export interface CooperativeProduct {
_id: 'ObjectID', _id: 'ObjectID',
name: string,
value: number, value: number,
weight: number, weight: number,
product: 'ObjectID' // Product ids
}
export interface Product {
_id: 'ObjectID',
name: string,
category: 'ObjectID' // category _id category: 'ObjectID' // category _id
} }
......
Clone repository
  • Padronização
  • Utilizando a wiki
    • adicionando imagens
    • escrevendo em markdown
    • wiki no editor de texto
  • arquitetura
  • backend
  • banco_dados
  • configuracao
  • git
  • gp
  • Home
  • horarios
  • instalacao
  • mockups
  • requisitos
View All Pages