diff --git a/doc/controllers_brief.svg b/doc/controllers_brief.svg index 1e3b5b4dc..433767080 100644 --- a/doc/controllers_brief.svg +++ b/doc/controllers_brief.svg @@ -12,8 +12,8 @@ _diagram_info Controllers diagram -Date: Aug 31 2016 - 12:07 -Migration version: 20160831084519 +Date: Sep 15 2016 - 17:48 +Migration version: 20160915105234 Generated by RailRoady 1.4.0 http://railroady.prestonlee.com diff --git a/doc/controllers_complete.svg b/doc/controllers_complete.svg index 7cb86dbef..0421faae8 100644 --- a/doc/controllers_complete.svg +++ b/doc/controllers_complete.svg @@ -12,8 +12,8 @@ _diagram_info Controllers diagram -Date: Aug 31 2016 - 12:07 -Migration version: 20160831084519 +Date: Sep 15 2016 - 17:48 +Migration version: 20160915105234 Generated by RailRoady 1.4.0 http://railroady.prestonlee.com diff --git a/doc/diagram.png b/doc/diagram.png index f882cde19..d98ed629e 100644 Binary files a/doc/diagram.png and b/doc/diagram.png differ diff --git a/doc/models_brief.svg b/doc/models_brief.svg index 5f88763cb..bca030210 100644 --- a/doc/models_brief.svg +++ b/doc/models_brief.svg @@ -4,16 +4,16 @@ - + models_diagram - + _diagram_info Models diagram -Date: Aug 31 2016 - 12:07 -Migration version: 20160831084519 +Date: Sep 15 2016 - 17:48 +Migration version: 20160915105234 Generated by RailRoady 1.4.0 http://railroady.prestonlee.com @@ -29,9 +29,9 @@ Group->Price - - - + + + machines_prices @@ -41,9 +41,9 @@ Group->TrainingsPricing - - - + + + Plan @@ -52,9 +52,9 @@ Group->Plan - - - + + + User @@ -63,20 +63,20 @@ Group->User - - - + + + InvoiceItem - -InvoiceItem + +InvoiceItem InvoiceItem->InvoiceItem - - - + + + AvailabilityTag @@ -85,8 +85,8 @@ OpenAPI - -OpenAPI + +OpenAPI TrainingImage @@ -95,24 +95,24 @@ OpenAPI::Client - -OpenAPI::Client + +OpenAPI::Client OpenAPI::CallsCountTracing - -OpenAPI::CallsCountTracing + +OpenAPI::CallsCountTracing OpenAPI::Client->OpenAPI::CallsCountTracing - - - + + + OpenAPI::ParameterError - -OpenAPI::ParameterError + +OpenAPI::ParameterError UserAvatar @@ -126,20 +126,20 @@ Tag - -Tag + +Tag Tag->AvailabilityTag - - - + + + Tag->User - - - + + + Availability @@ -148,9 +148,9 @@ Tag->Availability - - - + + + UserTag @@ -159,9 +159,9 @@ Tag->UserTag - - - + + + Event @@ -175,9 +175,9 @@ Event->PriceCategory - - - + + + EventTheme @@ -186,9 +186,9 @@ Event->EventTheme - - - + + + EventImage @@ -197,9 +197,9 @@ Event->EventImage - - - + + + Reservation @@ -208,9 +208,9 @@ Event->Reservation - - - + + + EventPriceCategory @@ -219,9 +219,9 @@ Event->EventPriceCategory - - - + + + EventFile @@ -230,36 +230,36 @@ Event->EventFile - - - + + + StatisticSubType - -StatisticSubType + +StatisticSubType StatisticType - -StatisticType + +StatisticType StatisticSubType->StatisticType - - - + + + StatisticTypeSubType - -StatisticTypeSubType + +StatisticTypeSubType StatisticSubType->StatisticTypeSubType - - - + + + Project @@ -268,15 +268,15 @@ Project->ProjectImage - - - + + + Project->User - - - + + + Theme @@ -285,9 +285,9 @@ Project->Theme - - - + + + ProjectCao @@ -296,9 +296,9 @@ Project->ProjectCao - - - + + + ProjectStep @@ -307,9 +307,9 @@ Project->ProjectStep - - - + + + ProjectUser @@ -318,133 +318,133 @@ Project->ProjectUser - - - + + + -Machine +Machine Machine Project->Machine - - - + + + -Component +Component Component Project->Component - - - + + + CustomAsset - -CustomAsset + +CustomAsset -CustomAssetFile - -CustomAssetFile +CustomAssetFile + +CustomAssetFile CustomAsset->CustomAssetFile - - - + + + AgeRange - -AgeRange + +AgeRange AgeRange->Event - - - + + + Wallet - -Wallet + +Wallet WalletTransaction - -WalletTransaction + +WalletTransaction Wallet->WalletTransaction - - - + + + Stats::Event - -Stats::Event + +Stats::Event Stats::Project - -Stats::Project + +Stats::Project Stats::User - -Stats::User + +Stats::User Stats::Subscription - -Stats::Subscription + +Stats::Subscription Stats::Training - -Stats::Training + +Stats::Training Stats::Account - -Stats::Account + +Stats::Account Stats::Machine - -Stats::Machine + +Stats::Machine PriceCategory->EventPriceCategory - - - + + + Invoice - -Invoice + +Invoice Invoice->InvoiceItem - - - + + + Invoice->Invoice - - - -avoir + + + +avoir PlanFile @@ -453,31 +453,42 @@ OfferDay - -OfferDay + +OfferDay OfferDay->Invoice - - - + + + StatisticIndex - -StatisticIndex + +StatisticIndex StatisticType->StatisticIndex - - - + + + StatisticType->StatisticTypeSubType - - - + + + + + +StatisticCustomAggregation + +StatisticCustomAggregation + + +StatisticType->StatisticCustomAggregation + + + Address @@ -485,52 +496,52 @@ Address -Plan->Price - - - +Plan->Price + + + -Plan->PlanFile - - - +Plan->PlanFile + + + Credit - -Credit - - -Plan->Credit - - - + +Credit Plan->Credit - - - -training_credits + + + Plan->Credit - - - + + + +training_credits + + +Plan->Credit + + + machine_credits Subscription - -Subscription + +Subscription -Plan->Subscription - - - +Plan->Subscription + + + PlanImage @@ -538,10 +549,10 @@ PlanImage -Plan->PlanImage - - - +Plan->PlanImage + + + MachineFile @@ -554,20 +565,20 @@ Organization -Organization->Address - - - +Organization->Address + + + StatisticGraph - -StatisticGraph + +StatisticGraph OAuth2Mapping - -OAuth2Mapping + +OAuth2Mapping Licence @@ -575,60 +586,60 @@ Licence -Licence->Project - - - +Licence->Project + + + -User->Project - - - +User->Project + + + my_projects -User->Wallet - - - +User->Wallet + + + -User->Invoice - - - - - -User->Credit - - - +User->Invoice + + + User->Credit - - - -training_credits + + + User->Credit - - - + + + +training_credits + + +User->Credit + + + machine_credits Role - -Role + +Role -User->Role - - - +User->Role + + + Notification @@ -636,16 +647,16 @@ Notification -User->Notification - - - +User->Notification + + + -User->Subscription - - - +User->Subscription + + + Training @@ -653,33 +664,33 @@ Training -User->Training - - - +User->Training + + + -User->Reservation - - - +User->Reservation + + + UsersCredit - -UsersCredit + +UsersCredit -User->UsersCredit - - - +User->UsersCredit + + + -User->UserTag - - - +User->UserTag + + + Export @@ -687,10 +698,10 @@ Export -User->Export - - - +User->Export + + + UserTraining @@ -698,27 +709,27 @@ UserTraining -User->UserTraining - - - +User->UserTraining + + + -User->ProjectUser - - - +User->ProjectUser + + + -Profile +Profile Profile -User->Profile - - - +User->Profile + + + ProjectStepImage @@ -726,132 +737,132 @@ ProjectStepImage -Credit->UsersCredit - - - +Credit->UsersCredit + + + PartnerPlan - -PartnerPlan + +PartnerPlan -PartnerPlan->Price - - - +PartnerPlan->Price + + + -PartnerPlan->PlanFile - - - - - -PartnerPlan->Credit - - - +PartnerPlan->PlanFile + + + PartnerPlan->Credit - - - -training_credits + + + PartnerPlan->Credit - - - + + + +training_credits + + +PartnerPlan->Credit + + + machine_credits -PartnerPlan->Role - - - +PartnerPlan->Role + + + -PartnerPlan->Subscription - - - +PartnerPlan->Subscription + + + -PartnerPlan->PlanImage - - - +PartnerPlan->PlanImage + + + OAuth2Provider - -OAuth2Provider + +OAuth2Provider -OAuth2Provider->OAuth2Mapping - - - +OAuth2Provider->OAuth2Mapping + + + AuthProvider - -AuthProvider + +AuthProvider -OAuth2Provider->AuthProvider - - - +OAuth2Provider->AuthProvider + + + Asset - -Asset + +Asset Project::OpenlabSync - -Project::OpenlabSync + +Project::OpenlabSync DatabaseProvider - -DatabaseProvider + +DatabaseProvider -DatabaseProvider->AuthProvider - - - +DatabaseProvider->AuthProvider + + + -Availability->AvailabilityTag - - - +Availability->AvailabilityTag + + + -Availability->Event - - - +Availability->Event + + + -Availability->Training - - - +Availability->Training + + + -Availability->Reservation - - - +Availability->Reservation + + + Slot @@ -859,10 +870,10 @@ Slot -Availability->Slot - - - +Availability->Slot + + + MachinesAvailability @@ -870,287 +881,287 @@ MachinesAvailability -Availability->MachinesAvailability - - - +Availability->MachinesAvailability + + + -TrainingsAvailability +TrainingsAvailability TrainingsAvailability -Availability->TrainingsAvailability - - - +Availability->TrainingsAvailability + + + -Availability->Machine - - - +Availability->Machine + + + -Subscription->Invoice - - - +Subscription->Invoice + + + -Subscription->OfferDay - - - +Subscription->OfferDay + + + -Training->TrainingImage - - - +Training->TrainingImage + + + -Training->TrainingsPricing - - - +Training->TrainingsPricing + + + -Training->Plan - - - +Training->Plan + + + -Training->Credit - - - +Training->Credit + + + -Training->Reservation - - - +Training->Reservation + + + -Training->UserTraining - - - +Training->UserTraining + + + -Training->TrainingsAvailability - - - +Training->TrainingsAvailability + + + -Training->Machine - - - +Training->Machine + + + -ProjectStep->ProjectStepImage - - - +ProjectStep->ProjectStepImage + + + -Reservation->Invoice - - - +Reservation->Invoice + + + -Reservation->Slot - - - +Reservation->Slot + + + -Ticket +Ticket Ticket -Reservation->Ticket - - - +Reservation->Ticket + + + -StatisticIndex->StatisticType - - - +StatisticIndex->StatisticType + + + -StatisticIndex->StatisticGraph - - - +StatisticIndex->StatisticGraph + + + StatisticField - -StatisticField + +StatisticField -StatisticIndex->StatisticField - - - +StatisticIndex->StatisticField + + + -StatisticField->StatisticIndex - - - +StatisticField->StatisticIndex + + + -WalletTransaction->Invoice - - - +WalletTransaction->Invoice + + + -EventPriceCategory->Ticket - - - +EventPriceCategory->Ticket + + + Avoir - -Avoir + +Avoir -Avoir->InvoiceItem - - - +Avoir->InvoiceItem + + + -Avoir->Invoice - - - -avoir +Avoir->Invoice + + + +avoir NotificationType - -NotificationType + +NotificationType Stylesheet - -Stylesheet + +Stylesheet -Coupon - -Coupon +Coupon + +Coupon -Coupon->Invoice - - - +Coupon->Invoice + + + -Category - -Category +Category + +Category -Category->Event - - - +Category->Event + + + -MachineImage +MachineImage MachineImage -Feed - -Feed +Feed + +Feed -Machine->Price - - - +Machine->Price + + + -Machine->Plan - - - +Machine->Plan + + + -Machine->MachineFile - - - +Machine->MachineFile + + + -Machine->Credit - - - +Machine->Credit + + + -Machine->Reservation - - - +Machine->Reservation + + + -Machine->MachinesAvailability - - - +Machine->MachinesAvailability + + + -Machine->MachineImage - - - +Machine->MachineImage + + + -Abuse - -Abuse +Abuse + +Abuse -Profile->UserAvatar - - - +Profile->UserAvatar + + + -Profile->Address - - - +Profile->Address + + + -Profile->Organization - - - +Profile->Organization + + + -Setting - -Setting +Setting + +Setting diff --git a/doc/models_complete.svg b/doc/models_complete.svg index 429fc0089..dd4b1aa9c 100644 --- a/doc/models_complete.svg +++ b/doc/models_complete.svg @@ -4,16 +4,16 @@ - + models_diagram - + _diagram_info Models diagram -Date: Aug 31 2016 - 12:07 -Migration version: 20160831084519 +Date: Sep 15 2016 - 17:48 +Migration version: 20160915105234 Generated by RailRoady 1.4.0 http://railroady.prestonlee.com @@ -44,9 +44,9 @@ Group->Price - - - + + + machines_prices @@ -63,9 +63,9 @@ Group->TrainingsPricing - - - + + + Plan @@ -90,9 +90,9 @@ Group->Plan - - - + + + User @@ -134,30 +134,30 @@ Group->User - - - + + + InvoiceItem - -InvoiceItem - -id :integer -invoice_id :integer -stp_invoice_item_id :character varying(255) -amount :integer -created_at :timestamp without time zone -updated_at :timestamp without time zone -description :text -subscription_id :integer -invoice_item_id :integer + +InvoiceItem + +id :integer +invoice_id :integer +stp_invoice_item_id :character varying(255) +amount :integer +created_at :timestamp without time zone +updated_at :timestamp without time zone +description :text +subscription_id :integer +invoice_item_id :integer InvoiceItem->InvoiceItem - - - + + + AvailabilityTag @@ -172,8 +172,8 @@ OpenAPI - -OpenAPI + +OpenAPI TrainingImage @@ -190,40 +190,40 @@ OpenAPI::Client - -OpenAPI::Client - -id :integer -name :character varying -calls_count :integer -token :character varying -created_at :timestamp without time zone -updated_at :timestamp without time zone + +OpenAPI::Client + +id :integer +name :character varying +calls_count :integer +token :character varying +created_at :timestamp without time zone +updated_at :timestamp without time zone OpenAPI::CallsCountTracing - -OpenAPI::CallsCountTracing - -id :integer -open_api_client_id :integer -calls_count :integer -at :timestamp without time zone -created_at :timestamp without time zone -updated_at :timestamp without time zone + +OpenAPI::CallsCountTracing + +id :integer +open_api_client_id :integer +calls_count :integer +at :timestamp without time zone +created_at :timestamp without time zone +updated_at :timestamp without time zone OpenAPI::Client->OpenAPI::CallsCountTracing - - - + + + OpenAPI::ParameterError - -OpenAPI::ParameterError - - + +OpenAPI::ParameterError + + UserAvatar @@ -253,25 +253,25 @@ Tag - -Tag - -id :integer -name :character varying -created_at :timestamp without time zone -updated_at :timestamp without time zone + +Tag + +id :integer +name :character varying +created_at :timestamp without time zone +updated_at :timestamp without time zone Tag->AvailabilityTag - - - + + + Tag->User - - - + + + Availability @@ -289,9 +289,9 @@ Tag->Availability - - - + + + UserTag @@ -306,80 +306,80 @@ Tag->UserTag - - - + + + Event - -Event - -id :integer -title :character varying(255) -description :text -created_at :timestamp without time zone -updated_at :timestamp without time zone -availability_id :integer -amount :integer -nb_total_places :integer -nb_free_places :integer -recurrence_id :integer -age_range_id :integer -category_id :integer + +Event + +id :integer +title :character varying(255) +description :text +created_at :timestamp without time zone +updated_at :timestamp without time zone +availability_id :integer +amount :integer +nb_total_places :integer +nb_free_places :integer +recurrence_id :integer +age_range_id :integer +category_id :integer PriceCategory - -PriceCategory - -id :integer -name :character varying -conditions :text -created_at :timestamp without time zone -updated_at :timestamp without time zone + +PriceCategory + +id :integer +name :character varying +conditions :text +created_at :timestamp without time zone +updated_at :timestamp without time zone Event->PriceCategory - - - + + + EventTheme - -EventTheme - -id :integer -name :character varying -created_at :timestamp without time zone -updated_at :timestamp without time zone -slug :character varying + +EventTheme + +id :integer +name :character varying +created_at :timestamp without time zone +updated_at :timestamp without time zone +slug :character varying Event->EventTheme - - - + + + EventImage - -EventImage - -id :integer -viewable_id :integer -viewable_type :character varying(255) -attachment :character varying(255) -type :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone + +EventImage + +id :integer +viewable_id :integer +viewable_type :character varying(255) +attachment :character varying(255) +type :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone Event->EventImage - - - + + + Reservation @@ -398,94 +398,94 @@ Event->Reservation - - - + + + EventPriceCategory - -EventPriceCategory - -id :integer -event_id :integer -price_category_id :integer -amount :integer -created_at :timestamp without time zone -updated_at :timestamp without time zone + +EventPriceCategory + +id :integer +event_id :integer +price_category_id :integer +amount :integer +created_at :timestamp without time zone +updated_at :timestamp without time zone Event->EventPriceCategory - - - + + + EventFile - -EventFile - -id :integer -viewable_id :integer -viewable_type :character varying(255) -attachment :character varying(255) -type :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone + +EventFile + +id :integer +viewable_id :integer +viewable_type :character varying(255) +attachment :character varying(255) +type :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone Event->EventFile - - - + + + StatisticSubType - -StatisticSubType - -id :integer -key :character varying(255) -label :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone + +StatisticSubType + +id :integer +key :character varying(255) +label :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone StatisticType - -StatisticType - -id :integer -statistic_index_id :integer -key :character varying(255) -label :character varying(255) -graph :boolean -created_at :timestamp without time zone -updated_at :timestamp without time zone -simple :boolean + +StatisticType + +id :integer +statistic_index_id :integer +key :character varying(255) +label :character varying(255) +graph :boolean +created_at :timestamp without time zone +updated_at :timestamp without time zone +simple :boolean StatisticSubType->StatisticType - - - + + + StatisticTypeSubType - -StatisticTypeSubType - -id :integer -statistic_type_id :integer -statistic_sub_type_id :integer -created_at :timestamp without time zone -updated_at :timestamp without time zone + +StatisticTypeSubType + +id :integer +statistic_type_id :integer +statistic_sub_type_id :integer +created_at :timestamp without time zone +updated_at :timestamp without time zone StatisticSubType->StatisticTypeSubType - - - + + + Project @@ -506,15 +506,15 @@ Project->ProjectImage - - - + + + Project->User - - - + + + Theme @@ -526,9 +526,9 @@ Project->Theme - - - + + + ProjectCao @@ -545,9 +545,9 @@ Project->ProjectCao - - - + + + ProjectStep @@ -564,9 +564,9 @@ Project->ProjectStep - - - + + + ProjectUser @@ -583,12 +583,12 @@ Project->ProjectUser - - - + + + -Machine +Machine Machine @@ -602,12 +602,12 @@ Project->Machine - - - + + + -Component +Component Component @@ -616,55 +616,55 @@ Project->Component - - - + + + CustomAsset - -CustomAsset - -id :integer -name :character varying -created_at :timestamp without time zone -updated_at :timestamp without time zone + +CustomAsset + +id :integer +name :character varying +created_at :timestamp without time zone +updated_at :timestamp without time zone -CustomAssetFile - -CustomAssetFile - -id :integer -viewable_id :integer -viewable_type :character varying(255) -attachment :character varying(255) -type :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone +CustomAssetFile + +CustomAssetFile + +id :integer +viewable_id :integer +viewable_type :character varying(255) +attachment :character varying(255) +type :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone CustomAsset->CustomAssetFile - - - + + + AgeRange - -AgeRange - -id :integer -name :character varying -created_at :timestamp without time zone -updated_at :timestamp without time zone -slug :character varying + +AgeRange + +id :integer +name :character varying +created_at :timestamp without time zone +updated_at :timestamp without time zone +slug :character varying AgeRange->Event - - - + + + Wallet @@ -679,116 +679,116 @@ WalletTransaction - -WalletTransaction - -id :integer -user_id :integer -wallet_id :integer -transactable_id :integer -transactable_type :character varying -transaction_type :character varying -amount :integer -created_at :timestamp without time zone -updated_at :timestamp without time zone + +WalletTransaction + +id :integer +user_id :integer +wallet_id :integer +transactable_id :integer +transactable_type :character varying +transaction_type :character varying +amount :integer +created_at :timestamp without time zone +updated_at :timestamp without time zone Wallet->WalletTransaction - - - + + + Stats::Event - -Stats::Event - - + +Stats::Event + + Stats::Project - -Stats::Project - - + +Stats::Project + + Stats::User - -Stats::User - - + +Stats::User + + Stats::Subscription - -Stats::Subscription - - + +Stats::Subscription + + Stats::Training - -Stats::Training - - + +Stats::Training + + Stats::Account - -Stats::Account - - + +Stats::Account + + Stats::Machine - -Stats::Machine - - + +Stats::Machine + + PriceCategory->EventPriceCategory - - - + + + Invoice - -Invoice - -id :integer -invoiced_id :integer -invoiced_type :character varying(255) -stp_invoice_id :character varying(255) -total :integer -created_at :timestamp without time zone -updated_at :timestamp without time zone -user_id :integer -reference :character varying(255) -avoir_mode :character varying(255) -avoir_date :timestamp without time zone -invoice_id :integer -type :character varying(255) -subscription_to_expire :boolean -description :text -wallet_amount :integer -wallet_transaction_id :integer -coupon_id :integer + +Invoice + +id :integer +invoiced_id :integer +invoiced_type :character varying(255) +stp_invoice_id :character varying(255) +total :integer +created_at :timestamp without time zone +updated_at :timestamp without time zone +user_id :integer +reference :character varying(255) +avoir_mode :character varying(255) +avoir_date :timestamp without time zone +invoice_id :integer +type :character varying(255) +subscription_to_expire :boolean +description :text +wallet_amount :integer +wallet_transaction_id :integer +coupon_id :integer Invoice->InvoiceItem - - - + + + Invoice->Invoice - - - -avoir + + + +avoir PlanFile @@ -805,75 +805,95 @@ OfferDay - -OfferDay - -id :integer -subscription_id :integer -start_at :timestamp without time zone -end_at :timestamp without time zone -created_at :timestamp without time zone -updated_at :timestamp without time zone + +OfferDay + +id :integer +subscription_id :integer +start_at :timestamp without time zone +end_at :timestamp without time zone +created_at :timestamp without time zone +updated_at :timestamp without time zone OfferDay->Invoice - - - + + + StatisticIndex - -StatisticIndex - -id :integer -es_type_key :character varying(255) -label :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone -table :boolean -ca :boolean + +StatisticIndex + +id :integer +es_type_key :character varying(255) +label :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone +table :boolean +ca :boolean StatisticType->StatisticIndex - - - + + + StatisticType->StatisticTypeSubType - - - + + + + + +StatisticCustomAggregation + +StatisticCustomAggregation + +id :integer +query :text +statistic_type_id :integer +created_at :timestamp without time zone +updated_at :timestamp without time zone +field :character varying +es_index :character varying +es_type :character varying + + +StatisticType->StatisticCustomAggregation + + + Address - -Address - -id :integer -address :character varying(255) -street_number :character varying(255) -route :character varying(255) -locality :character varying(255) -country :character varying(255) -postal_code :character varying(255) -placeable_id :integer -placeable_type :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone + +Address + +id :integer +address :character varying(255) +street_number :character varying(255) +route :character varying(255) +locality :character varying(255) +country :character varying(255) +postal_code :character varying(255) +placeable_id :integer +placeable_type :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone -Plan->Price - - - +Plan->Price + + + -Plan->PlanFile - - - +Plan->PlanFile + + + Credit @@ -889,44 +909,44 @@ updated_at :timestamp without time zone -Plan->Credit - - - - - Plan->Credit - - - -training_credits + + + Plan->Credit - - - + + + +training_credits + + +Plan->Credit + + + machine_credits Subscription - -Subscription - -id :integer -plan_id :integer -user_id :integer -stp_subscription_id :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone -expired_at :timestamp without time zone -canceled_at :timestamp without time zone + +Subscription + +id :integer +plan_id :integer +user_id :integer +stp_subscription_id :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone +expired_at :timestamp without time zone +canceled_at :timestamp without time zone -Plan->Subscription - - - +Plan->Subscription + + + PlanImage @@ -942,10 +962,10 @@ updated_at :timestamp without time zone -Plan->PlanImage - - - +Plan->PlanImage + + + MachineFile @@ -972,37 +992,38 @@ profile_id :integer -Organization->Address - - - +Organization->Address + + + StatisticGraph - -StatisticGraph - -id :integer -statistic_index_id :integer -chart_type :character varying(255) -limit :integer -created_at :timestamp without time zone -updated_at :timestamp without time zone + +StatisticGraph + +id :integer +statistic_index_id :integer +chart_type :character varying(255) +limit :integer +created_at :timestamp without time zone +updated_at :timestamp without time zone OAuth2Mapping - -OAuth2Mapping - -id :integer -o_auth2_provider_id :integer -local_field :character varying -api_field :character varying -created_at :timestamp without time zone -updated_at :timestamp without time zone -local_model :character varying -api_endpoint :character varying -api_data_type :character varying + +OAuth2Mapping + +id :integer +o_auth2_provider_id :integer +local_field :character varying +api_field :character varying +created_at :timestamp without time zone +updated_at :timestamp without time zone +local_model :character varying +api_endpoint :character varying +api_data_type :character varying +transformation :jsonb Licence @@ -1014,67 +1035,67 @@ description :text -Licence->Project - - - +Licence->Project + + + -User->Project - - - +User->Project + + + my_projects -User->Wallet - - - +User->Wallet + + + -User->Invoice - - - - - -User->Credit - - - +User->Invoice + + + User->Credit - - - -training_credits + + + User->Credit - - - + + + +training_credits + + +User->Credit + + + machine_credits Role - -Role - -id :integer -name :character varying(255) -resource_id :integer -resource_type :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone + +Role + +id :integer +name :character varying(255) +resource_id :integer +resource_type :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone -User->Role - - - +User->Role + + + Notification @@ -1094,16 +1115,16 @@ meta_data :jsonb -User->Notification - - - +User->Notification + + + -User->Subscription - - - +User->Subscription + + + Training @@ -1120,40 +1141,40 @@ public_page :boolean -User->Training - - - +User->Training + + + -User->Reservation - - - +User->Reservation + + + UsersCredit - -UsersCredit - -id :integer -user_id :integer -credit_id :integer -hours_used :integer -created_at :timestamp without time zone -updated_at :timestamp without time zone + +UsersCredit + +id :integer +user_id :integer +credit_id :integer +hours_used :integer +created_at :timestamp without time zone +updated_at :timestamp without time zone -User->UsersCredit - - - +User->UsersCredit + + + -User->UserTag - - - +User->UserTag + + + Export @@ -1170,10 +1191,10 @@ key :character varying -User->Export - - - +User->Export + + + UserTraining @@ -1187,19 +1208,19 @@ training_id :integer -User->UserTraining - - - +User->UserTraining + + + -User->ProjectUser - - - +User->ProjectUser + + + -Profile +Profile Profile @@ -1232,10 +1253,10 @@ job :character varying -User->Profile - - - +User->Profile + + + ProjectStepImage @@ -1251,10 +1272,10 @@ updated_at :timestamp without time zone -Credit->UsersCredit - - - +Credit->UsersCredit + + + PartnerPlan @@ -1278,151 +1299,151 @@ interval_count :integer -PartnerPlan->Price - - - +PartnerPlan->Price + + + -PartnerPlan->PlanFile - - - - - -PartnerPlan->Credit - - - +PartnerPlan->PlanFile + + + PartnerPlan->Credit - - - -training_credits + + + PartnerPlan->Credit - - - + + + +training_credits + + +PartnerPlan->Credit + + + machine_credits -PartnerPlan->Role - - - +PartnerPlan->Role + + + -PartnerPlan->Subscription - - - +PartnerPlan->Subscription + + + -PartnerPlan->PlanImage - - - +PartnerPlan->PlanImage + + + OAuth2Provider - -OAuth2Provider - -id :integer -base_url :character varying -token_endpoint :character varying -authorization_endpoint :character varying -client_id :character varying -client_secret :character varying -created_at :timestamp without time zone -updated_at :timestamp without time zone -profile_url :character varying + +OAuth2Provider + +id :integer +base_url :character varying +token_endpoint :character varying +authorization_endpoint :character varying +client_id :character varying +client_secret :character varying +created_at :timestamp without time zone +updated_at :timestamp without time zone +profile_url :character varying -OAuth2Provider->OAuth2Mapping - - - +OAuth2Provider->OAuth2Mapping + + + AuthProvider - -AuthProvider - -id :integer -name :character varying -status :character varying -created_at :timestamp without time zone -updated_at :timestamp without time zone -providable_type :character varying -providable_id :integer + +AuthProvider + +id :integer +name :character varying +status :character varying +created_at :timestamp without time zone +updated_at :timestamp without time zone +providable_type :character varying +providable_id :integer -OAuth2Provider->AuthProvider - - - +OAuth2Provider->AuthProvider + + + Asset - -Asset - -id :integer -viewable_id :integer -viewable_type :character varying(255) -attachment :character varying(255) -type :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone + +Asset + +id :integer +viewable_id :integer +viewable_type :character varying(255) +attachment :character varying(255) +type :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone Project::OpenlabSync - -Project::OpenlabSync + +Project::OpenlabSync DatabaseProvider - -DatabaseProvider - -id :integer -created_at :timestamp without time zone -updated_at :timestamp without time zone + +DatabaseProvider + +id :integer +created_at :timestamp without time zone +updated_at :timestamp without time zone -DatabaseProvider->AuthProvider - - - +DatabaseProvider->AuthProvider + + + -Availability->AvailabilityTag - - - +Availability->AvailabilityTag + + + -Availability->Event - - - +Availability->Event + + + -Availability->Training - - - +Availability->Training + + + -Availability->Reservation - - - +Availability->Reservation + + + Slot @@ -1442,10 +1463,10 @@ offered :boolean -Availability->Slot - - - +Availability->Slot + + + MachinesAvailability @@ -1457,13 +1478,13 @@ availability_id :integer -Availability->MachinesAvailability - - - +Availability->MachinesAvailability + + + -TrainingsAvailability +TrainingsAvailability TrainingsAvailability @@ -1474,97 +1495,97 @@ updated_at :timestamp without time zone -Availability->TrainingsAvailability - - - +Availability->TrainingsAvailability + + + -Availability->Machine - - - +Availability->Machine + + + -Subscription->Invoice - - - +Subscription->Invoice + + + -Subscription->OfferDay - - - +Subscription->OfferDay + + + -Training->TrainingImage - - - +Training->TrainingImage + + + -Training->TrainingsPricing - - - +Training->TrainingsPricing + + + -Training->Plan - - - +Training->Plan + + + -Training->Credit - - - +Training->Credit + + + -Training->Reservation - - - +Training->Reservation + + + -Training->UserTraining - - - +Training->UserTraining + + + -Training->TrainingsAvailability - - - +Training->TrainingsAvailability + + + -Training->Machine - - - +Training->Machine + + + -ProjectStep->ProjectStepImage - - - +ProjectStep->ProjectStepImage + + + -Reservation->Invoice - - - +Reservation->Invoice + + + -Reservation->Slot - - - +Reservation->Slot + + + -Ticket +Ticket Ticket @@ -1576,155 +1597,155 @@ updated_at :timestamp without time zone -Reservation->Ticket - - - +Reservation->Ticket + + + -StatisticIndex->StatisticType - - - +StatisticIndex->StatisticType + + + -StatisticIndex->StatisticGraph - - - +StatisticIndex->StatisticGraph + + + StatisticField - -StatisticField - -id :integer -statistic_index_id :integer -key :character varying(255) -label :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone -data_type :character varying(255) + +StatisticField + +id :integer +statistic_index_id :integer +key :character varying(255) +label :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone +data_type :character varying(255) -StatisticIndex->StatisticField - - - +StatisticIndex->StatisticField + + + -StatisticField->StatisticIndex - - - +StatisticField->StatisticIndex + + + -WalletTransaction->Invoice - - - +WalletTransaction->Invoice + + + -EventPriceCategory->Ticket - - - +EventPriceCategory->Ticket + + + Avoir - -Avoir - -id :integer -invoiced_id :integer -invoiced_type :character varying(255) -stp_invoice_id :character varying(255) -total :integer -created_at :timestamp without time zone -updated_at :timestamp without time zone -user_id :integer -reference :character varying(255) -avoir_mode :character varying(255) -avoir_date :timestamp without time zone -invoice_id :integer -type :character varying(255) -subscription_to_expire :boolean -description :text -wallet_amount :integer -wallet_transaction_id :integer -coupon_id :integer + +Avoir + +id :integer +invoiced_id :integer +invoiced_type :character varying(255) +stp_invoice_id :character varying(255) +total :integer +created_at :timestamp without time zone +updated_at :timestamp without time zone +user_id :integer +reference :character varying(255) +avoir_mode :character varying(255) +avoir_date :timestamp without time zone +invoice_id :integer +type :character varying(255) +subscription_to_expire :boolean +description :text +wallet_amount :integer +wallet_transaction_id :integer +coupon_id :integer -Avoir->InvoiceItem - - - +Avoir->InvoiceItem + + + -Avoir->Invoice - - - -avoir +Avoir->Invoice + + + +avoir NotificationType - -NotificationType - - + +NotificationType + + Stylesheet - -Stylesheet - -id :integer -contents :text -created_at :timestamp without time zone -updated_at :timestamp without time zone + +Stylesheet + +id :integer +contents :text +created_at :timestamp without time zone +updated_at :timestamp without time zone -Coupon - -Coupon - -id :integer -name :character varying -code :character varying -percent_off :integer -valid_until :timestamp without time zone -max_usages :integer -active :boolean -created_at :timestamp without time zone -updated_at :timestamp without time zone -validity_per_user :character varying +Coupon + +Coupon + +id :integer +name :character varying +code :character varying +percent_off :integer +valid_until :timestamp without time zone +max_usages :integer +active :boolean +created_at :timestamp without time zone +updated_at :timestamp without time zone +validity_per_user :character varying -Coupon->Invoice - - - +Coupon->Invoice + + + -Category - -Category - -id :integer -name :character varying(255) -created_at :timestamp without time zone -updated_at :timestamp without time zone -slug :character varying +Category + +Category + +id :integer +name :character varying(255) +created_at :timestamp without time zone +updated_at :timestamp without time zone +slug :character varying -Category->Event - - - +Category->Event + + + -MachineImage +MachineImage MachineImage @@ -1737,97 +1758,97 @@ updated_at :timestamp without time zone -Feed - -Feed - - +Feed + +Feed + + -Machine->Price - - - +Machine->Price + + + -Machine->Plan - - - +Machine->Plan + + + -Machine->MachineFile - - - +Machine->MachineFile + + + -Machine->Credit - - - +Machine->Credit + + + -Machine->Reservation - - - +Machine->Reservation + + + -Machine->MachinesAvailability - - - +Machine->MachinesAvailability + + + -Machine->MachineImage - - - +Machine->MachineImage + + + -Abuse - -Abuse - -id :integer -signaled_id :integer -signaled_type :character varying -first_name :character varying -last_name :character varying -email :character varying -message :text -created_at :timestamp without time zone -updated_at :timestamp without time zone +Abuse + +Abuse + +id :integer +signaled_id :integer +signaled_type :character varying +first_name :character varying +last_name :character varying +email :character varying +message :text +created_at :timestamp without time zone +updated_at :timestamp without time zone -Profile->UserAvatar - - - +Profile->UserAvatar + + + -Profile->Address - - - +Profile->Address + + + -Profile->Organization - - - +Profile->Organization + + + -Setting - -Setting - -id :integer -name :character varying -value :text -created_at :timestamp without time zone -updated_at :timestamp without time zone +Setting + +Setting + +id :integer +name :character varying +value :text +created_at :timestamp without time zone +updated_at :timestamp without time zone diff --git a/doc/sso_with_github.md b/doc/sso_with_github.md index 3204c38f8..dfe28c8dc 100644 --- a/doc/sso_with_github.md +++ b/doc/sso_with_github.md @@ -43,7 +43,7 @@ For this guide, we will use [GitHub](https://developer.github.com/v3/oauth/) as Once you have completed and validated the mapping's line, an information button will be available. A click on it will show you the type of data expected from the API and, in some cases, you'll be able to configure a transformation. - For example, the `Profile.gender` field require a boolean attribute but your API may return strings like `man / woman`. + For example, the `Profile.gender` field require a booleanrake diagram:all attribute but your API may return strings like `man / woman`. In this case, you'll be able to configure a transformation for `man` <-> `true` and `woman` <-> `false`. Now, you are free to map more fields, like `Profile.github` to `html_url`, or `Profile.avatar` to `avatar_url`...