101 / wordpress_api /models.py
thejagstudio's picture
Upload 119 files
566570e verified
from django.db import models
class Wp1DActionschedulerActions(models.Model):
action_id = models.BigAutoField(primary_key=True)
hook = models.CharField(max_length=191)
status = models.CharField(max_length=20)
scheduled_date_gmt = models.DateTimeField(blank=True, null=True)
scheduled_date_local = models.DateTimeField(blank=True, null=True)
priority = models.PositiveIntegerField()
args = models.CharField(max_length=191, blank=True, null=True)
schedule = models.TextField(blank=True, null=True)
group_id = models.PositiveBigIntegerField()
attempts = models.IntegerField()
last_attempt_gmt = models.DateTimeField(blank=True, null=True)
last_attempt_local = models.DateTimeField(blank=True, null=True)
claim_id = models.PositiveBigIntegerField()
extended_args = models.CharField(max_length=8000, blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_actionscheduler_actions'
class Wp1DActionschedulerClaims(models.Model):
claim_id = models.BigAutoField(primary_key=True)
date_created_gmt = models.DateTimeField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_actionscheduler_claims'
class Wp1DActionschedulerGroups(models.Model):
group_id = models.BigAutoField(primary_key=True)
slug = models.CharField(max_length=255)
class Meta:
managed = False
db_table = 'wp1d_actionscheduler_groups'
class Wp1DActionschedulerLogs(models.Model):
log_id = models.BigAutoField(primary_key=True)
action_id = models.PositiveBigIntegerField()
message = models.TextField()
log_date_gmt = models.DateTimeField(blank=True, null=True)
log_date_local = models.DateTimeField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_actionscheduler_logs'
class Wp1DCommentmeta(models.Model):
meta_id = models.BigAutoField(primary_key=True)
comment_id = models.PositiveBigIntegerField()
meta_key = models.CharField(max_length=255, blank=True, null=True)
meta_value = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_commentmeta'
class Wp1DComments(models.Model):
comment_id = models.BigAutoField(db_column='comment_ID', primary_key=True) # Field name made lowercase.
comment_post_id = models.PositiveBigIntegerField(db_column='comment_post_ID') # Field name made lowercase.
comment_author = models.TextField()
comment_author_email = models.CharField(max_length=100)
comment_author_url = models.CharField(max_length=200)
comment_author_ip = models.CharField(db_column='comment_author_IP', max_length=100) # Field name made lowercase.
comment_date = models.DateTimeField()
comment_date_gmt = models.DateTimeField()
comment_content = models.TextField()
comment_karma = models.IntegerField()
comment_approved = models.CharField(max_length=20)
comment_agent = models.CharField(max_length=255)
comment_type = models.CharField(max_length=20)
comment_parent = models.PositiveBigIntegerField()
user_id = models.PositiveBigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_comments'
class Wp1DFsmptEmailLogs(models.Model):
site_id = models.PositiveIntegerField(blank=True, null=True)
to = models.CharField(max_length=255, blank=True, null=True)
from_field = models.CharField(db_column='from', max_length=255, blank=True, null=True) # Field renamed because it was a Python reserved word.
subject = models.CharField(max_length=255, blank=True, null=True)
body = models.TextField(blank=True, null=True)
headers = models.TextField(blank=True, null=True)
attachments = models.TextField(blank=True, null=True)
status = models.CharField(max_length=20, blank=True, null=True)
response = models.TextField(blank=True, null=True)
extra = models.TextField(blank=True, null=True)
retries = models.PositiveIntegerField(blank=True, null=True)
resent_count = models.PositiveIntegerField(blank=True, null=True)
source = models.CharField(max_length=255, blank=True, null=True)
created_at = models.DateTimeField(blank=True, null=True)
updated_at = models.DateTimeField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_fsmpt_email_logs'
class Wp1DKbpCountdownEntry(models.Model):
id = models.BigAutoField(primary_key=True)
campaign = models.CharField(max_length=255, blank=True, null=True)
end_date = models.CharField(max_length=255, blank=True, null=True)
remove_date = models.CharField(max_length=255, blank=True, null=True)
user_id = models.PositiveBigIntegerField()
user_ip = models.CharField(max_length=50)
uuid = models.CharField(max_length=100)
class Meta:
managed = False
db_table = 'wp1d_kbp_countdown_entry'
class Wp1DKbpFormEntry(models.Model):
id = models.BigAutoField(primary_key=True)
name = models.CharField(max_length=255, blank=True, null=True)
form_id = models.CharField(max_length=55, blank=True, null=True)
post_id = models.PositiveBigIntegerField()
user_id = models.PositiveBigIntegerField()
date_created = models.DateTimeField()
user_ip = models.CharField(max_length=100)
user_device = models.CharField(max_length=55, blank=True, null=True)
referer = models.CharField(max_length=255, blank=True, null=True)
status = models.CharField(max_length=10, blank=True, null=True)
uuid = models.CharField(max_length=100)
class Meta:
managed = False
db_table = 'wp1d_kbp_form_entry'
class Wp1DKbpFormEntrymeta(models.Model):
meta_id = models.BigAutoField(primary_key=True)
kbp_form_entry_id = models.PositiveBigIntegerField()
meta_key = models.CharField(max_length=255, blank=True, null=True)
meta_value = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_kbp_form_entrymeta'
class Wp1DKbpFormEvents(models.Model):
id = models.BigAutoField(primary_key=True)
event_type = models.CharField(max_length=128)
event_post = models.IntegerField()
event_time = models.DateTimeField()
event_count = models.PositiveIntegerField()
event_consolidated = models.IntegerField()
class Meta:
managed = False
db_table = 'wp1d_kbp_form_events'
unique_together = (('event_type', 'event_post', 'event_time', 'event_consolidated'),)
class Wp1DKbpQueryIndex(models.Model):
id = models.BigAutoField(primary_key=True)
object_id = models.PositiveIntegerField(blank=True, null=True)
hash = models.CharField(max_length=50, blank=True, null=True)
facet_value = models.CharField(max_length=191, blank=True, null=True)
facet_name = models.CharField(max_length=191, blank=True, null=True)
facet_id = models.PositiveIntegerField(blank=True, null=True)
facet_parent = models.PositiveIntegerField(blank=True, null=True)
facet_order = models.PositiveIntegerField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_kbp_query_index'
class Wp1DLinks(models.Model):
link_id = models.BigAutoField(primary_key=True)
link_url = models.CharField(max_length=255)
link_name = models.CharField(max_length=255)
link_image = models.CharField(max_length=255)
link_target = models.CharField(max_length=25)
link_description = models.CharField(max_length=255)
link_visible = models.CharField(max_length=20)
link_owner = models.PositiveBigIntegerField()
link_rating = models.IntegerField()
link_updated = models.DateTimeField()
link_rel = models.CharField(max_length=255)
link_notes = models.TextField()
link_rss = models.CharField(max_length=255)
class Meta:
managed = False
db_table = 'wp1d_links'
class Wp1DOptions(models.Model):
option_id = models.BigAutoField(primary_key=True)
option_name = models.CharField(unique=True, max_length=191)
option_value = models.TextField()
autoload = models.CharField(max_length=20)
class Meta:
managed = False
db_table = 'wp1d_options'
class Wp1DPostmeta(models.Model):
meta_id = models.BigAutoField(primary_key=True)
post_id = models.PositiveBigIntegerField()
meta_key = models.CharField(max_length=255, blank=True, null=True)
meta_value = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_postmeta'
class Wp1DPosts(models.Model):
id = models.BigAutoField(db_column='ID', primary_key=True) # Field name made lowercase.
post_author = models.PositiveBigIntegerField()
post_date = models.DateTimeField()
post_date_gmt = models.DateTimeField()
post_content = models.TextField()
post_title = models.TextField()
post_excerpt = models.TextField()
post_status = models.CharField(max_length=20)
comment_status = models.CharField(max_length=20)
ping_status = models.CharField(max_length=20)
post_password = models.CharField(max_length=255)
post_name = models.CharField(max_length=200)
to_ping = models.TextField()
pinged = models.TextField()
post_modified = models.DateTimeField()
post_modified_gmt = models.DateTimeField()
post_content_filtered = models.TextField()
post_parent = models.PositiveBigIntegerField()
guid = models.CharField(max_length=255)
menu_order = models.IntegerField()
post_type = models.CharField(max_length=20)
post_mime_type = models.CharField(max_length=100)
comment_count = models.BigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_posts'
class Wp1DSnippets(models.Model):
id = models.BigAutoField(primary_key=True)
name = models.TextField()
description = models.TextField()
code = models.TextField()
tags = models.TextField()
scope = models.CharField(max_length=15)
priority = models.SmallIntegerField()
active = models.IntegerField()
modified = models.DateTimeField()
revision = models.BigIntegerField()
cloud_id = models.CharField(max_length=255, blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_snippets'
class Wp1DSocialUsers(models.Model):
social_users_id = models.AutoField(primary_key=True)
id = models.IntegerField(db_column='ID') # Field name made lowercase.
type = models.CharField(max_length=20)
identifier = models.CharField(max_length=100)
register_date = models.DateTimeField(blank=True, null=True)
login_date = models.DateTimeField(blank=True, null=True)
link_date = models.DateTimeField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_social_users'
class Wp1DTermRelationships(models.Model):
pk = models.CompositePrimaryKey('object_id', 'term_taxonomy_id')
object_id = models.PositiveBigIntegerField()
term_taxonomy_id = models.PositiveBigIntegerField()
term_order = models.IntegerField()
class Meta:
managed = False
db_table = 'wp1d_term_relationships'
class Wp1DTermTaxonomy(models.Model):
term_taxonomy_id = models.BigAutoField(primary_key=True)
term_id = models.PositiveBigIntegerField()
taxonomy = models.CharField(max_length=32)
description = models.TextField()
parent = models.PositiveBigIntegerField()
count = models.BigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_term_taxonomy'
unique_together = (('term_id', 'taxonomy'),)
class Wp1DTermmeta(models.Model):
meta_id = models.BigAutoField(primary_key=True)
term_id = models.PositiveBigIntegerField()
meta_key = models.CharField(max_length=255, blank=True, null=True)
meta_value = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_termmeta'
class Wp1DTerms(models.Model):
term_id = models.BigAutoField(primary_key=True)
name = models.CharField(max_length=200)
slug = models.CharField(max_length=200)
term_group = models.BigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_terms'
class Wp1DUrAbandonedData(models.Model):
id = models.BigAutoField(primary_key=True)
form_id = models.IntegerField(blank=True, null=True)
referer = models.CharField(max_length=255, blank=True, null=True)
user_id = models.BigIntegerField(blank=True, null=True)
fields = models.TextField(blank=True, null=True)
status = models.CharField(max_length=20, blank=True, null=True)
created_at = models.DateTimeField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_ur_abandoned_data'
class Wp1DUrAbandonedMeta(models.Model):
meta_id = models.BigAutoField(primary_key=True)
abandon_id = models.CharField(max_length=255)
meta_key = models.CharField(max_length=255, blank=True, null=True)
meta_value = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_ur_abandoned_meta'
class Wp1DUrUserPostVisits(models.Model):
id = models.BigAutoField(primary_key=True)
session_id = models.CharField(max_length=255)
page_url = models.CharField(max_length=255)
referer_url = models.CharField(max_length=255)
duration = models.IntegerField(blank=True, null=True)
user_id = models.BigIntegerField(blank=True, null=True)
form_id = models.IntegerField(blank=True, null=True)
form_abandoned = models.IntegerField(blank=True, null=True)
form_submitted = models.IntegerField(blank=True, null=True)
created_at = models.DateTimeField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_ur_user_post_visits'
class Wp1DUserRegistrationSessions(models.Model):
session_id = models.BigAutoField(primary_key=True)
session_key = models.CharField(max_length=32)
session_value = models.TextField()
session_expiry = models.PositiveBigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_user_registration_sessions'
class Wp1DUsermeta(models.Model):
umeta_id = models.BigAutoField(primary_key=True)
user_id = models.PositiveBigIntegerField()
meta_key = models.CharField(max_length=255, blank=True, null=True)
meta_value = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_usermeta'
class Wp1DUsers(models.Model):
id = models.BigAutoField(db_column='ID', primary_key=True) # Field name made lowercase.
user_login = models.CharField(max_length=60)
user_pass = models.CharField(max_length=255)
user_nicename = models.CharField(max_length=50)
user_email = models.CharField(max_length=100)
user_url = models.CharField(max_length=100)
user_registered = models.DateTimeField()
user_activation_key = models.CharField(max_length=255)
user_status = models.IntegerField()
display_name = models.CharField(max_length=250)
class Meta:
managed = False
db_table = 'wp1d_users'
class Wp1DWcAdminNoteActions(models.Model):
action_id = models.BigAutoField(primary_key=True)
note_id = models.PositiveBigIntegerField()
name = models.CharField(max_length=255)
label = models.CharField(max_length=255)
query = models.TextField()
status = models.CharField(max_length=255)
actioned_text = models.CharField(max_length=255)
nonce_action = models.CharField(max_length=255, blank=True, null=True)
nonce_name = models.CharField(max_length=255, blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_wc_admin_note_actions'
class Wp1DWcAdminNotes(models.Model):
note_id = models.BigAutoField(primary_key=True)
name = models.CharField(max_length=255)
type = models.CharField(max_length=20)
locale = models.CharField(max_length=20)
title = models.TextField()
content = models.TextField()
content_data = models.TextField(blank=True, null=True)
status = models.CharField(max_length=200)
source = models.CharField(max_length=200)
date_created = models.DateTimeField()
date_reminder = models.DateTimeField(blank=True, null=True)
is_snoozable = models.IntegerField()
layout = models.CharField(max_length=20)
image = models.CharField(max_length=200, blank=True, null=True)
is_deleted = models.IntegerField()
is_read = models.IntegerField()
icon = models.CharField(max_length=200)
class Meta:
managed = False
db_table = 'wp1d_wc_admin_notes'
class Wp1DWcCategoryLookup(models.Model):
pk = models.CompositePrimaryKey('category_tree_id', 'category_id')
category_tree_id = models.PositiveBigIntegerField()
category_id = models.PositiveBigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_wc_category_lookup'
class Wp1DWcCustomerLookup(models.Model):
customer_id = models.BigAutoField(primary_key=True)
user_id = models.PositiveBigIntegerField(unique=True, blank=True, null=True)
username = models.CharField(max_length=60)
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
email = models.CharField(max_length=100, blank=True, null=True)
date_last_active = models.DateTimeField(blank=True, null=True)
date_registered = models.DateTimeField(blank=True, null=True)
country = models.CharField(max_length=2)
postcode = models.CharField(max_length=20)
city = models.CharField(max_length=100)
state = models.CharField(max_length=100)
class Meta:
managed = False
db_table = 'wp1d_wc_customer_lookup'
class Wp1DWcDownloadLog(models.Model):
download_log_id = models.BigAutoField(primary_key=True)
timestamp = models.DateTimeField()
permission_id = models.PositiveBigIntegerField()
user_id = models.PositiveBigIntegerField(blank=True, null=True)
user_ip_address = models.CharField(max_length=100, blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_wc_download_log'
class Wp1DWcOrderAddresses(models.Model):
id = models.BigAutoField(primary_key=True)
order_id = models.PositiveBigIntegerField()
address_type = models.CharField(max_length=20, blank=True, null=True)
first_name = models.TextField(blank=True, null=True)
last_name = models.TextField(blank=True, null=True)
company = models.TextField(blank=True, null=True)
address_1 = models.TextField(blank=True, null=True)
address_2 = models.TextField(blank=True, null=True)
city = models.TextField(blank=True, null=True)
state = models.TextField(blank=True, null=True)
postcode = models.TextField(blank=True, null=True)
country = models.TextField(blank=True, null=True)
email = models.CharField(max_length=320, blank=True, null=True)
phone = models.CharField(max_length=100, blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_wc_order_addresses'
unique_together = (('address_type', 'order_id'),)
class Wp1DWcOrderCouponLookup(models.Model):
pk = models.CompositePrimaryKey('order_id', 'coupon_id')
order_id = models.PositiveBigIntegerField()
coupon_id = models.BigIntegerField()
date_created = models.DateTimeField()
discount_amount = models.FloatField()
class Meta:
managed = False
db_table = 'wp1d_wc_order_coupon_lookup'
class Wp1DWcOrderOperationalData(models.Model):
id = models.BigAutoField(primary_key=True)
order_id = models.PositiveBigIntegerField(unique=True, blank=True, null=True)
created_via = models.CharField(max_length=100, blank=True, null=True)
woocommerce_version = models.CharField(max_length=20, blank=True, null=True)
prices_include_tax = models.IntegerField(blank=True, null=True)
coupon_usages_are_counted = models.IntegerField(blank=True, null=True)
download_permission_granted = models.IntegerField(blank=True, null=True)
cart_hash = models.CharField(max_length=100, blank=True, null=True)
new_order_email_sent = models.IntegerField(blank=True, null=True)
order_key = models.CharField(max_length=100, blank=True, null=True)
order_stock_reduced = models.IntegerField(blank=True, null=True)
date_paid_gmt = models.DateTimeField(blank=True, null=True)
date_completed_gmt = models.DateTimeField(blank=True, null=True)
shipping_tax_amount = models.DecimalField(max_digits=26, decimal_places=8, blank=True, null=True)
shipping_total_amount = models.DecimalField(max_digits=26, decimal_places=8, blank=True, null=True)
discount_tax_amount = models.DecimalField(max_digits=26, decimal_places=8, blank=True, null=True)
discount_total_amount = models.DecimalField(max_digits=26, decimal_places=8, blank=True, null=True)
recorded_sales = models.IntegerField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_wc_order_operational_data'
class Wp1DWcOrderProductLookup(models.Model):
order_item_id = models.PositiveBigIntegerField(primary_key=True)
order_id = models.PositiveBigIntegerField()
product_id = models.PositiveBigIntegerField()
variation_id = models.PositiveBigIntegerField()
customer_id = models.PositiveBigIntegerField(blank=True, null=True)
date_created = models.DateTimeField()
product_qty = models.IntegerField()
product_net_revenue = models.FloatField()
product_gross_revenue = models.FloatField()
coupon_amount = models.FloatField()
tax_amount = models.FloatField()
shipping_amount = models.FloatField()
shipping_tax_amount = models.FloatField()
class Meta:
managed = False
db_table = 'wp1d_wc_order_product_lookup'
class Wp1DWcOrderStats(models.Model):
order_id = models.PositiveBigIntegerField(primary_key=True)
parent_id = models.PositiveBigIntegerField()
date_created = models.DateTimeField()
date_created_gmt = models.DateTimeField()
date_paid = models.DateTimeField(blank=True, null=True)
date_completed = models.DateTimeField(blank=True, null=True)
num_items_sold = models.IntegerField()
total_sales = models.FloatField()
tax_total = models.FloatField()
shipping_total = models.FloatField()
net_total = models.FloatField()
returning_customer = models.IntegerField(blank=True, null=True)
status = models.CharField(max_length=200)
customer_id = models.PositiveBigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_wc_order_stats'
class Wp1DWcOrderTaxLookup(models.Model):
pk = models.CompositePrimaryKey('order_id', 'tax_rate_id')
order_id = models.PositiveBigIntegerField()
tax_rate_id = models.PositiveBigIntegerField()
date_created = models.DateTimeField()
shipping_tax = models.FloatField()
order_tax = models.FloatField()
total_tax = models.FloatField()
class Meta:
managed = False
db_table = 'wp1d_wc_order_tax_lookup'
class Wp1DWcOrders(models.Model):
id = models.PositiveBigIntegerField(primary_key=True)
status = models.CharField(max_length=20, blank=True, null=True)
currency = models.CharField(max_length=10, blank=True, null=True)
type = models.CharField(max_length=20, blank=True, null=True)
tax_amount = models.DecimalField(max_digits=26, decimal_places=8, blank=True, null=True)
total_amount = models.DecimalField(max_digits=26, decimal_places=8, blank=True, null=True)
customer_id = models.PositiveBigIntegerField(blank=True, null=True)
billing_email = models.CharField(max_length=320, blank=True, null=True)
date_created_gmt = models.DateTimeField(blank=True, null=True)
date_updated_gmt = models.DateTimeField(blank=True, null=True)
parent_order_id = models.PositiveBigIntegerField(blank=True, null=True)
payment_method = models.CharField(max_length=100, blank=True, null=True)
payment_method_title = models.TextField(blank=True, null=True)
transaction_id = models.CharField(max_length=100, blank=True, null=True)
ip_address = models.CharField(max_length=100, blank=True, null=True)
user_agent = models.TextField(blank=True, null=True)
customer_note = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_wc_orders'
class Wp1DWcOrdersMeta(models.Model):
id = models.BigAutoField(primary_key=True)
order_id = models.PositiveBigIntegerField(blank=True, null=True)
meta_key = models.CharField(max_length=255, blank=True, null=True)
meta_value = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_wc_orders_meta'
class Wp1DWcProductAttributesLookup(models.Model):
pk = models.CompositePrimaryKey('product_or_parent_id', 'term_id', 'product_id', 'taxonomy')
product_id = models.BigIntegerField()
product_or_parent_id = models.BigIntegerField()
taxonomy = models.CharField(max_length=32)
term_id = models.BigIntegerField()
is_variation_attribute = models.IntegerField()
in_stock = models.IntegerField()
class Meta:
managed = False
db_table = 'wp1d_wc_product_attributes_lookup'
class Wp1DWcProductDownloadDirectories(models.Model):
url_id = models.BigAutoField(primary_key=True)
url = models.CharField(max_length=256)
enabled = models.IntegerField()
class Meta:
managed = False
db_table = 'wp1d_wc_product_download_directories'
class Wp1DWcProductMetaLookup(models.Model):
product_id = models.BigIntegerField(primary_key=True)
sku = models.CharField(max_length=100, blank=True, null=True)
global_unique_id = models.CharField(max_length=100, blank=True, null=True)
virtual = models.IntegerField(blank=True, null=True)
downloadable = models.IntegerField(blank=True, null=True)
min_price = models.DecimalField(max_digits=19, decimal_places=4, blank=True, null=True)
max_price = models.DecimalField(max_digits=19, decimal_places=4, blank=True, null=True)
onsale = models.IntegerField(blank=True, null=True)
stock_quantity = models.FloatField(blank=True, null=True)
stock_status = models.CharField(max_length=100, blank=True, null=True)
rating_count = models.BigIntegerField(blank=True, null=True)
average_rating = models.DecimalField(max_digits=3, decimal_places=2, blank=True, null=True)
total_sales = models.BigIntegerField(blank=True, null=True)
tax_status = models.CharField(max_length=100, blank=True, null=True)
tax_class = models.CharField(max_length=100, blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_wc_product_meta_lookup'
class Wp1DWcRateLimits(models.Model):
rate_limit_id = models.BigAutoField(primary_key=True)
rate_limit_key = models.CharField(unique=True, max_length=200)
rate_limit_expiry = models.PositiveBigIntegerField()
rate_limit_remaining = models.SmallIntegerField()
class Meta:
managed = False
db_table = 'wp1d_wc_rate_limits'
class Wp1DWcReservedStock(models.Model):
pk = models.CompositePrimaryKey('order_id', 'product_id')
order_id = models.BigIntegerField()
product_id = models.BigIntegerField()
stock_quantity = models.FloatField()
timestamp = models.DateTimeField()
expires = models.DateTimeField()
class Meta:
managed = False
db_table = 'wp1d_wc_reserved_stock'
class Wp1DWcTaxRateClasses(models.Model):
tax_rate_class_id = models.BigAutoField(primary_key=True)
name = models.CharField(max_length=200)
slug = models.CharField(unique=True, max_length=200)
class Meta:
managed = False
db_table = 'wp1d_wc_tax_rate_classes'
class Wp1DWcWebhooks(models.Model):
webhook_id = models.BigAutoField(primary_key=True)
status = models.CharField(max_length=200)
name = models.TextField()
user_id = models.PositiveBigIntegerField()
delivery_url = models.TextField()
secret = models.TextField()
topic = models.CharField(max_length=200)
date_created = models.DateTimeField()
date_created_gmt = models.DateTimeField()
date_modified = models.DateTimeField()
date_modified_gmt = models.DateTimeField()
api_version = models.SmallIntegerField()
failure_count = models.SmallIntegerField()
pending_delivery = models.IntegerField()
class Meta:
managed = False
db_table = 'wp1d_wc_webhooks'
class Wp1DWoocommerceApiKeys(models.Model):
key_id = models.BigAutoField(primary_key=True)
user_id = models.PositiveBigIntegerField()
description = models.CharField(max_length=200, blank=True, null=True)
permissions = models.CharField(max_length=10)
consumer_key = models.CharField(max_length=64)
consumer_secret = models.CharField(max_length=43)
nonces = models.TextField(blank=True, null=True)
truncated_key = models.CharField(max_length=7)
last_access = models.DateTimeField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_woocommerce_api_keys'
class Wp1DWoocommerceAttributeTaxonomies(models.Model):
attribute_id = models.BigAutoField(primary_key=True)
attribute_name = models.CharField(max_length=200)
attribute_label = models.CharField(max_length=200, blank=True, null=True)
attribute_type = models.CharField(max_length=20)
attribute_orderby = models.CharField(max_length=20)
attribute_public = models.IntegerField()
class Meta:
managed = False
db_table = 'wp1d_woocommerce_attribute_taxonomies'
class Wp1DWoocommerceDownloadableProductPermissions(models.Model):
permission_id = models.BigAutoField(primary_key=True)
download_id = models.CharField(max_length=36)
product_id = models.PositiveBigIntegerField()
order_id = models.PositiveBigIntegerField()
order_key = models.CharField(max_length=200)
user_email = models.CharField(max_length=200)
user_id = models.PositiveBigIntegerField(blank=True, null=True)
downloads_remaining = models.CharField(max_length=9, blank=True, null=True)
access_granted = models.DateTimeField()
access_expires = models.DateTimeField(blank=True, null=True)
download_count = models.PositiveBigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_woocommerce_downloadable_product_permissions'
class Wp1DWoocommerceLog(models.Model):
log_id = models.BigAutoField(primary_key=True)
timestamp = models.DateTimeField()
level = models.SmallIntegerField()
source = models.CharField(max_length=200)
message = models.TextField()
context = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_woocommerce_log'
class Wp1DWoocommerceOrderItemmeta(models.Model):
meta_id = models.BigAutoField(primary_key=True)
order_item_id = models.PositiveBigIntegerField()
meta_key = models.CharField(max_length=255, blank=True, null=True)
meta_value = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_woocommerce_order_itemmeta'
class Wp1DWoocommerceOrderItems(models.Model):
order_item_id = models.BigAutoField(primary_key=True)
order_item_name = models.TextField()
order_item_type = models.CharField(max_length=200)
order_id = models.PositiveBigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_woocommerce_order_items'
class Wp1DWoocommercePaymentTokenmeta(models.Model):
meta_id = models.BigAutoField(primary_key=True)
payment_token_id = models.PositiveBigIntegerField()
meta_key = models.CharField(max_length=255, blank=True, null=True)
meta_value = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_woocommerce_payment_tokenmeta'
class Wp1DWoocommercePaymentTokens(models.Model):
token_id = models.BigAutoField(primary_key=True)
gateway_id = models.CharField(max_length=200)
token = models.TextField()
user_id = models.PositiveBigIntegerField()
type = models.CharField(max_length=200)
is_default = models.IntegerField()
class Meta:
managed = False
db_table = 'wp1d_woocommerce_payment_tokens'
class Wp1DWoocommerceSessions(models.Model):
session_id = models.BigAutoField(primary_key=True)
session_key = models.CharField(unique=True, max_length=32)
session_value = models.TextField()
session_expiry = models.PositiveBigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_woocommerce_sessions'
class Wp1DWoocommerceShippingZoneLocations(models.Model):
location_id = models.BigAutoField(primary_key=True)
zone_id = models.PositiveBigIntegerField()
location_code = models.CharField(max_length=200)
location_type = models.CharField(max_length=40)
class Meta:
managed = False
db_table = 'wp1d_woocommerce_shipping_zone_locations'
class Wp1DWoocommerceShippingZoneMethods(models.Model):
zone_id = models.PositiveBigIntegerField()
instance_id = models.BigAutoField(primary_key=True)
method_id = models.CharField(max_length=200)
method_order = models.PositiveBigIntegerField()
is_enabled = models.IntegerField()
class Meta:
managed = False
db_table = 'wp1d_woocommerce_shipping_zone_methods'
class Wp1DWoocommerceShippingZones(models.Model):
zone_id = models.BigAutoField(primary_key=True)
zone_name = models.CharField(max_length=200)
zone_order = models.PositiveBigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_woocommerce_shipping_zones'
class Wp1DWoocommerceTaxRateLocations(models.Model):
location_id = models.BigAutoField(primary_key=True)
location_code = models.CharField(max_length=200)
tax_rate_id = models.PositiveBigIntegerField()
location_type = models.CharField(max_length=40)
class Meta:
managed = False
db_table = 'wp1d_woocommerce_tax_rate_locations'
class Wp1DWoocommerceTaxRates(models.Model):
tax_rate_id = models.BigAutoField(primary_key=True)
tax_rate_country = models.CharField(max_length=2)
tax_rate_state = models.CharField(max_length=200)
tax_rate = models.CharField(max_length=8)
tax_rate_name = models.CharField(max_length=200)
tax_rate_priority = models.PositiveBigIntegerField()
tax_rate_compound = models.IntegerField()
tax_rate_shipping = models.IntegerField()
tax_rate_order = models.PositiveBigIntegerField()
tax_rate_class = models.CharField(max_length=200)
class Meta:
managed = False
db_table = 'wp1d_woocommerce_tax_rates'
class Wp1DWpcbFolders(models.Model):
name = models.CharField(max_length=150)
savedtocloud = models.SmallIntegerField(db_column='savedToCloud') # Field name made lowercase.
remoteid = models.IntegerField(db_column='remoteId') # Field name made lowercase.
folder_order = models.IntegerField()
class Meta:
managed = False
db_table = 'wp1d_wpcb_folders'
class Wp1DWpcbSnippets(models.Model):
title = models.CharField(max_length=100)
description = models.TextField()
enabled = models.IntegerField()
priority = models.IntegerField()
runtype = models.CharField(db_column='runType', max_length=100) # Field name made lowercase.
code = models.TextField()
original_code = models.TextField()
codetype = models.CharField(db_column='codeType', max_length=100) # Field name made lowercase.
conditions = models.TextField()
location = models.CharField(max_length=20)
tagoptions = models.CharField(db_column='tagOptions', max_length=100) # Field name made lowercase.
hook = models.CharField(max_length=1000)
rendertype = models.CharField(db_column='renderType', max_length=20, blank=True, null=True) # Field name made lowercase.
minify = models.IntegerField()
snippet_order = models.IntegerField()
addtoquickactions = models.SmallIntegerField(db_column='addToQuickActions') # Field name made lowercase.
savedtocloud = models.SmallIntegerField(db_column='savedToCloud') # Field name made lowercase.
remoteid = models.IntegerField(db_column='remoteId') # Field name made lowercase.
externalurl = models.SmallIntegerField(db_column='externalUrl') # Field name made lowercase.
secret = models.CharField(max_length=50)
folderid = models.IntegerField(db_column='folderId') # Field name made lowercase.
error = models.IntegerField()
errormessage = models.TextField(db_column='errorMessage') # Field name made lowercase.
errortrace = models.TextField(db_column='errorTrace') # Field name made lowercase.
errorline = models.IntegerField(db_column='errorLine') # Field name made lowercase.
devmode = models.SmallIntegerField(db_column='devMode') # Field name made lowercase.
lastmodified = models.CharField(db_column='lastModified', max_length=100) # Field name made lowercase.
class Meta:
managed = False
db_table = 'wp1d_wpcb_snippets'
class Wp1DWpsmtpLogs(models.Model):
mail_id = models.AutoField(primary_key=True)
timestamp = models.DateTimeField()
to = models.CharField(max_length=200)
subject = models.CharField(max_length=200)
message = models.TextField(blank=True, null=True)
headers = models.TextField(blank=True, null=True)
error = models.TextField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_wpsmtp_logs'
class Wp1DWpvividOptions(models.Model):
option_id = models.BigAutoField(primary_key=True)
option_name = models.CharField(unique=True, max_length=191)
option_value = models.TextField()
class Meta:
managed = False
db_table = 'wp1d_wpvivid_options'
class Wp1DWpvividScanResult(models.Model):
id = models.BigAutoField(primary_key=True)
path = models.TextField()
from_post = models.IntegerField()
class Meta:
managed = False
db_table = 'wp1d_wpvivid_scan_result'
class Wp1DWpvividUnusedUploadsFiles(models.Model):
id = models.BigAutoField(primary_key=True)
path = models.TextField()
folder = models.TextField()
class Meta:
managed = False
db_table = 'wp1d_wpvivid_unused_uploads_files'
class Wp1DYoastIndexable(models.Model):
permalink = models.TextField(blank=True, null=True)
permalink_hash = models.CharField(max_length=40, blank=True, null=True)
object_id = models.BigIntegerField(blank=True, null=True)
object_type = models.CharField(max_length=32)
object_sub_type = models.CharField(max_length=32, blank=True, null=True)
author_id = models.BigIntegerField(blank=True, null=True)
post_parent = models.BigIntegerField(blank=True, null=True)
title = models.TextField(blank=True, null=True)
description = models.TextField(blank=True, null=True)
breadcrumb_title = models.TextField(blank=True, null=True)
post_status = models.CharField(max_length=20, blank=True, null=True)
is_public = models.IntegerField(blank=True, null=True)
is_protected = models.IntegerField(blank=True, null=True)
has_public_posts = models.IntegerField(blank=True, null=True)
number_of_pages = models.PositiveIntegerField(blank=True, null=True)
canonical = models.TextField(blank=True, null=True)
primary_focus_keyword = models.CharField(max_length=191, blank=True, null=True)
primary_focus_keyword_score = models.IntegerField(blank=True, null=True)
readability_score = models.IntegerField(blank=True, null=True)
is_cornerstone = models.IntegerField(blank=True, null=True)
is_robots_noindex = models.IntegerField(blank=True, null=True)
is_robots_nofollow = models.IntegerField(blank=True, null=True)
is_robots_noarchive = models.IntegerField(blank=True, null=True)
is_robots_noimageindex = models.IntegerField(blank=True, null=True)
is_robots_nosnippet = models.IntegerField(blank=True, null=True)
twitter_title = models.TextField(blank=True, null=True)
twitter_image = models.TextField(blank=True, null=True)
twitter_description = models.TextField(blank=True, null=True)
twitter_image_id = models.CharField(max_length=191, blank=True, null=True)
twitter_image_source = models.TextField(blank=True, null=True)
open_graph_title = models.TextField(blank=True, null=True)
open_graph_description = models.TextField(blank=True, null=True)
open_graph_image = models.TextField(blank=True, null=True)
open_graph_image_id = models.CharField(max_length=191, blank=True, null=True)
open_graph_image_source = models.TextField(blank=True, null=True)
open_graph_image_meta = models.TextField(blank=True, null=True)
link_count = models.IntegerField(blank=True, null=True)
incoming_link_count = models.IntegerField(blank=True, null=True)
prominent_words_version = models.PositiveIntegerField(blank=True, null=True)
created_at = models.DateTimeField(blank=True, null=True)
updated_at = models.DateTimeField()
blog_id = models.BigIntegerField()
language = models.CharField(max_length=32, blank=True, null=True)
region = models.CharField(max_length=32, blank=True, null=True)
schema_page_type = models.CharField(max_length=64, blank=True, null=True)
schema_article_type = models.CharField(max_length=64, blank=True, null=True)
has_ancestors = models.IntegerField(blank=True, null=True)
estimated_reading_time_minutes = models.IntegerField(blank=True, null=True)
version = models.IntegerField(blank=True, null=True)
object_last_modified = models.DateTimeField(blank=True, null=True)
object_published_at = models.DateTimeField(blank=True, null=True)
inclusive_language_score = models.IntegerField(blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_yoast_indexable'
class Wp1DYoastIndexableHierarchy(models.Model):
pk = models.CompositePrimaryKey('indexable_id', 'ancestor_id')
indexable_id = models.PositiveIntegerField()
ancestor_id = models.PositiveIntegerField()
depth = models.PositiveIntegerField(blank=True, null=True)
blog_id = models.BigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_yoast_indexable_hierarchy'
class Wp1DYoastMigrations(models.Model):
version = models.CharField(unique=True, max_length=191, blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_yoast_migrations'
class Wp1DYoastPrimaryTerm(models.Model):
post_id = models.BigIntegerField(blank=True, null=True)
term_id = models.BigIntegerField(blank=True, null=True)
taxonomy = models.CharField(max_length=32)
created_at = models.DateTimeField(blank=True, null=True)
updated_at = models.DateTimeField()
blog_id = models.BigIntegerField()
class Meta:
managed = False
db_table = 'wp1d_yoast_primary_term'
class Wp1DYoastSeoLinks(models.Model):
id = models.BigAutoField(primary_key=True)
url = models.CharField(max_length=255, blank=True, null=True)
post_id = models.PositiveBigIntegerField(blank=True, null=True)
target_post_id = models.PositiveBigIntegerField(blank=True, null=True)
type = models.CharField(max_length=8, blank=True, null=True)
indexable_id = models.PositiveIntegerField(blank=True, null=True)
target_indexable_id = models.PositiveIntegerField(blank=True, null=True)
height = models.PositiveIntegerField(blank=True, null=True)
width = models.PositiveIntegerField(blank=True, null=True)
size = models.PositiveIntegerField(blank=True, null=True)
language = models.CharField(max_length=32, blank=True, null=True)
region = models.CharField(max_length=32, blank=True, null=True)
class Meta:
managed = False
db_table = 'wp1d_yoast_seo_links'