Advertisement
Lesnic

Tables

Apr 23rd, 2021
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.22 KB | None | 0 0
  1. tables = [
  2.     ['actor',
  3.      'actor_id', 'Int32',
  4.      'first_name', 'String',
  5.      'last_name', 'String',
  6.      'last_update', 'DateTime64'
  7.      ],
  8.     ['actor_info',
  9.      'actor_id', 'Int32',
  10.      'first_name', 'String',
  11.      'last_name', 'String',
  12.      'film_info', 'String'
  13.      ],
  14.     ['customer_list',
  15.      'id', 'Int32',
  16.      'name', 'String',
  17.      'address', 'String',
  18.      'zipcode', 'String',
  19.      'phone', 'String',
  20.      'city', 'String',
  21.      'country', 'String',
  22.      'notes', 'String',
  23.      'sid', 'Int16'
  24.      ],
  25.     ['film_list',
  26.      'fid', 'Int32',
  27.      'title', 'String',
  28.      'description', 'String',
  29.      'category', 'String',
  30.      'price', 'Decimal(4, 2)',
  31.      'length', 'Int16',
  32.      'rating', 'String',
  33.      'actors', 'String'
  34.      ],
  35.     ['nicer_but_slower_film_list',
  36.      'fid', 'Int32',
  37.      'title', 'String',
  38.      'description', 'String',
  39.      'category', 'String',
  40.      'price', 'Decimal(4, 2)',
  41.      'length', 'Int16',
  42.      'rating', 'String',
  43.      'actors', 'String'
  44.      ],
  45.     ['sales_by_film_category',
  46.      'category', 'String',
  47.      'total_sales', 'Decimal(6, 2)'
  48.      ],
  49.     ['store',
  50.      'store_id', 'Int32',
  51.      'manager_staff_id', 'Int16',
  52.      'address_id', 'Int16',
  53.      'last_update', 'DateTime'
  54.      ],
  55.     ['sales_by_store',
  56.      'store', 'String',
  57.      'manager', 'String',
  58.      'total_sales', 'Decimal(7, 2)'
  59.      ],
  60.     ['staff_list',
  61.      'id', 'Int32',
  62.      'name', 'String',
  63.      'address', 'String',
  64.      'zipcode', 'String',
  65.      'phone', 'String',
  66.      'city', 'String',
  67.      'country', 'String',
  68.      'sid', 'Int16'
  69.      ],
  70.     ['address',
  71.      'address_id', 'Int32',
  72.      'address', 'String',
  73.      'address2', 'String',
  74.      'district', 'String',
  75.      'city_id', 'Int16',
  76.      'postal_code', 'String',
  77.      'phone', 'String',
  78.      'last_update', 'DateTime'
  79.      ],
  80.     ['category',
  81.      'category_id', 'Int32',
  82.      'name', 'String',
  83.      'last_update', 'DateTime'
  84.      ],
  85.     ['city',
  86.      'city_id', 'Int32',
  87.      'city', 'String',
  88.      'country_id', 'Int16',
  89.      'last_update', 'DateTime'
  90.      ],
  91.     ['country',
  92.      'country_id', 'Int32',
  93.      'country', 'String',
  94.      'last_update', 'DateTime'
  95.      ],
  96.     ['customer',
  97.      'customer_id', 'Int32',
  98.      'store_id', 'Int16',
  99.      'first_name', 'String',
  100.      'last_name', 'String',
  101.      'email', 'String',
  102.      'address_id', 'Int16',
  103.      'activebool', 'UInt8',
  104.      'create_date', 'Date',
  105.      'last_update', 'DateTime64',
  106.      'active', 'Int32'
  107.      ],
  108.     ['film_actor',
  109.      'actor_id', 'Int16',
  110.      'film_id', 'Int16',
  111.      'last_update', 'DateTime'
  112.      ],
  113.     ['film_category',
  114.      'film_id', 'Int16',
  115.      'category_id', 'Int16',
  116.      'last_update', 'DateTime'
  117.      ],
  118.     ['inventory',
  119.      'inventory_id', 'Int32',
  120.      'film_id', 'Int16',
  121.      'store_id', 'Int16',
  122.      'last_update', 'DateTime'
  123.      ],
  124.     ['language',
  125.      'language_id', 'Int32',
  126.      'name', 'String',
  127.      'last_update', 'DateTime'
  128.      ],
  129.     ['rental',
  130.      'rental_id', 'Int32',
  131.      'rental_date', 'DateTime',
  132.      'inventory_id', 'Int32',
  133.      'customer_id', 'Int16',
  134.      'return_date', 'DateTime',
  135.      'staff_id', 'Int16',
  136.      'last_update', 'DateTime'
  137.      ],
  138.     ['staff',
  139.      'staff_id', 'Int32',
  140.      'first_name', 'String',
  141.      'last_name', 'String',
  142.      'address_id', 'Int16',
  143.      'email', 'String',
  144.      'store_id', 'Int16',
  145.      'active', 'UInt8',
  146.      'username', 'String',
  147.      'password', 'String',
  148.      'last_update', 'DateTime64',
  149.      'picture', 'String'
  150.      ],
  151.     ['payment',
  152.      'payment_id', 'Int32',
  153.      'customer_id', 'Int16',
  154.      'staff_id', 'Int16',
  155.      'rental_id', 'Int32',
  156.      'amount', 'Decimal(5, 2)',
  157.      'payment_date', 'DateTime64'
  158.      ],
  159.     ['film',
  160.      'film_id', 'Int32',
  161.      'title', 'String',
  162.      'description', 'String',
  163.      'release_year', 'Int32',
  164.      'language_id', 'Int16',
  165.      'rental_duration', 'Int16',
  166.      'rental_rate', 'Decimal(4, 2)',
  167.      'length', 'Int16',
  168.      'replacement_cost', 'Decimal(5, 2)',
  169.      'rating', 'String',
  170.      'last_update', 'TimeDate64',
  171.      'special_features', 'array(String)',
  172.      'fulltext', 'String',
  173.      ]
  174. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement