33 lines
13 KiB
Rust
33 lines
13 KiB
Rust
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3
|
|
|
|
use sea_orm :: entity :: prelude :: * ; use serde :: { Deserialize , Serialize } ;
|
|
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "cart_types")] pub enum CartTypes { # [sea_orm (string_value = "claim")] Claim , # [sea_orm (string_value = "default")] Default , # [sea_orm (string_value = "draft_order")] DraftOrder , # [sea_orm (string_value = "payment_link")] PaymentLink , # [sea_orm (string_value = "swap")] Swap , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "claim_item_reasons")] pub enum ClaimItemReasons { # [sea_orm (string_value = "missing_item")] MissingItem , # [sea_orm (string_value = "other")] Other , # [sea_orm (string_value = "production_failure")] ProductionFailure , # [sea_orm (string_value = "wrong_item")] WrongItem , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "claim_order_fulfillment_statuses")] pub enum ClaimOrderFulfillmentStatuses { # [sea_orm (string_value = "canceled")] Canceled , # [sea_orm (string_value = "fulfilled")] Fulfilled , # [sea_orm (string_value = "not_fulfilled")] NotFulfilled , # [sea_orm (string_value = "partially_fulfilled")] PartiallyFulfilled , # [sea_orm (string_value = "partially_returned")] PartiallyReturned , # [sea_orm (string_value = "partially_shipped")] PartiallyShipped , # [sea_orm (string_value = "requires_action")] RequiresAction , # [sea_orm (string_value = "returned")] Returned , # [sea_orm (string_value = "shipped")] Shipped , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "claim_order_payment_statuses")] pub enum ClaimOrderPaymentStatuses { # [sea_orm (string_value = "na")] Na , # [sea_orm (string_value = "not_refunded")] NotRefunded , # [sea_orm (string_value = "refunded")] Refunded , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "claim_order_types")] pub enum ClaimOrderTypes { # [sea_orm (string_value = "refund")] Refund , # [sea_orm (string_value = "replace")] Replace , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "discount_condition_operators")] pub enum DiscountConditionOperators { # [sea_orm (string_value = "in")] In , # [sea_orm (string_value = "not_in")] NotIn , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "discount_condition_types")] pub enum DiscountConditionTypes { # [sea_orm (string_value = "customer_groups")] CustomerGroups , # [sea_orm (string_value = "product_collections")] ProductCollections , # [sea_orm (string_value = "product_tags")] ProductTags , # [sea_orm (string_value = "product_types")] ProductTypes , # [sea_orm (string_value = "products")] Products , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "discount_rule_allocations")] pub enum DiscountRuleAllocations { # [sea_orm (string_value = "item")] Item , # [sea_orm (string_value = "total")] Total , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "discount_rule_types")] pub enum DiscountRuleTypes { # [sea_orm (string_value = "fixed")] Fixed , # [sea_orm (string_value = "free_shipping")] FreeShipping , # [sea_orm (string_value = "percentage")] Percentage , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "draft_order_statuses")] pub enum DraftOrderStatuses { # [sea_orm (string_value = "completed")] Completed , # [sea_orm (string_value = "open")] Open , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "invite_roles")] pub enum InviteRoles { # [sea_orm (string_value = "admin")] Admin , # [sea_orm (string_value = "developer")] Developer , # [sea_orm (string_value = "member")] Member , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "order_fulfillment_statuses")] pub enum OrderFulfillmentStatuses { # [sea_orm (string_value = "canceled")] Canceled , # [sea_orm (string_value = "fulfilled")] Fulfilled , # [sea_orm (string_value = "not_fulfilled")] NotFulfilled , # [sea_orm (string_value = "partially_fulfilled")] PartiallyFulfilled , # [sea_orm (string_value = "partially_returned")] PartiallyReturned , # [sea_orm (string_value = "partially_shipped")] PartiallyShipped , # [sea_orm (string_value = "requires_action")] RequiresAction , # [sea_orm (string_value = "returned")] Returned , # [sea_orm (string_value = "shipped")] Shipped , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "order_item_change_types")] pub enum OrderItemChangeTypes { # [sea_orm (string_value = "item_add")] ItemAdd , # [sea_orm (string_value = "item_remove")] ItemRemove , # [sea_orm (string_value = "item_update")] ItemUpdate , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "order_payment_statuses")] pub enum OrderPaymentStatuses { # [sea_orm (string_value = "awaiting")] Awaiting , # [sea_orm (string_value = "canceled")] Canceled , # [sea_orm (string_value = "captured")] Captured , # [sea_orm (string_value = "not_paid")] NotPaid , # [sea_orm (string_value = "partially_refunded")] PartiallyRefunded , # [sea_orm (string_value = "refunded")] Refunded , # [sea_orm (string_value = "requires_action")] RequiresAction , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "order_statuses")] pub enum OrderStatuses { # [sea_orm (string_value = "archived")] Archived , # [sea_orm (string_value = "canceled")] Canceled , # [sea_orm (string_value = "completed")] Completed , # [sea_orm (string_value = "pending")] Pending , # [sea_orm (string_value = "requires_action")] RequiresAction , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "payment_collection_statuses")] pub enum PaymentCollectionStatuses { # [sea_orm (string_value = "authorized")] Authorized , # [sea_orm (string_value = "awaiting")] Awaiting , # [sea_orm (string_value = "canceled")] Canceled , # [sea_orm (string_value = "not_paid")] NotPaid , # [sea_orm (string_value = "partially_authorized")] PartiallyAuthorized , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "payment_collection_types")] pub enum PaymentCollectionTypes { # [sea_orm (string_value = "order_edit")] OrderEdit , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "payment_session_statuses")] pub enum PaymentSessionStatuses { # [sea_orm (string_value = "authorized")] Authorized , # [sea_orm (string_value = "canceled")] Canceled , # [sea_orm (string_value = "error")] Error , # [sea_orm (string_value = "pending")] Pending , # [sea_orm (string_value = "requires_more")] RequiresMore , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "price_list_statuses")] pub enum PriceListStatuses { # [sea_orm (string_value = "active")] Active , # [sea_orm (string_value = "draft")] Draft , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "price_list_types")] pub enum PriceListTypes { # [sea_orm (string_value = "override")] Override , # [sea_orm (string_value = "sale")] Sale , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "product_statuses")] pub enum ProductStatuses { # [sea_orm (string_value = "draft")] Draft , # [sea_orm (string_value = "proposed")] Proposed , # [sea_orm (string_value = "published")] Published , # [sea_orm (string_value = "rejected")] Rejected , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "refund_reasons")] pub enum RefundReasons { # [sea_orm (string_value = "claim")] Claim , # [sea_orm (string_value = "discount")] Discount , # [sea_orm (string_value = "other")] Other , # [sea_orm (string_value = "return")] Return , # [sea_orm (string_value = "swap")] Swap , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "return_statuses")] pub enum ReturnStatuses { # [sea_orm (string_value = "canceled")] Canceled , # [sea_orm (string_value = "received")] Received , # [sea_orm (string_value = "requested")] Requested , # [sea_orm (string_value = "requires_action")] RequiresAction , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "shipping_option_price_types")] pub enum ShippingOptionPriceTypes { # [sea_orm (string_value = "calculated")] Calculated , # [sea_orm (string_value = "flat_rate")] FlatRate , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "shipping_option_requirement_types")] pub enum ShippingOptionRequirementTypes { # [sea_orm (string_value = "max_subtotal")] MaxSubtotal , # [sea_orm (string_value = "min_subtotal")] MinSubtotal , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "shipping_profile_types")] pub enum ShippingProfileTypes { # [sea_orm (string_value = "custom")] Custom , # [sea_orm (string_value = "default")] Default , # [sea_orm (string_value = "gift_card")] GiftCard , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "swap_fulfillment_statuses")] pub enum SwapFulfillmentStatuses { # [sea_orm (string_value = "canceled")] Canceled , # [sea_orm (string_value = "fulfilled")] Fulfilled , # [sea_orm (string_value = "not_fulfilled")] NotFulfilled , # [sea_orm (string_value = "partially_shipped")] PartiallyShipped , # [sea_orm (string_value = "requires_action")] RequiresAction , # [sea_orm (string_value = "shipped")] Shipped , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "swap_payment_statuses")] pub enum SwapPaymentStatuses { # [sea_orm (string_value = "awaiting")] Awaiting , # [sea_orm (string_value = "canceled")] Canceled , # [sea_orm (string_value = "captured")] Captured , # [sea_orm (string_value = "confirmed")] Confirmed , # [sea_orm (string_value = "difference_refunded")] DifferenceRefunded , # [sea_orm (string_value = "not_paid")] NotPaid , # [sea_orm (string_value = "partially_refunded")] PartiallyRefunded , # [sea_orm (string_value = "refunded")] Refunded , # [sea_orm (string_value = "requires_action")] RequiresAction , }
|
|
# [derive (Debug , Clone , PartialEq , Eq , EnumIter , DeriveActiveEnum , Serialize , Deserialize)] # [sea_orm (rs_type = "String" , db_type = "Enum" , enum_name = "user_roles")] pub enum UserRoles { # [sea_orm (string_value = "admin")] Admin , # [sea_orm (string_value = "developer")] Developer , # [sea_orm (string_value = "member")] Member , } |