You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB

# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from django.db import models
from userApp.models import User
from movieApp.models import AppMovie
# 商品模型类
from django.db import models
class AppMall(models.Model):
goodsname = models.CharField(max_length=100)
goodstype = models.CharField(max_length=100)
goodsimg = models.CharField(max_length=100)
goodsprice = models.CharField(max_length=100)
class Meta:
db_table = 'app_mall'
# 商城订单模型类
class mallOrder(models.Model):
userid = models.ForeignKey(User,on_delete=models.CASCADE)
goodsid = models.ForeignKey(AppMall,on_delete=models.CASCADE)
class Meta:
db_table = 'app_mall_order'