Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User(models.Model):
- id = models.AutoField(db_column='id', primary_key=True)
- password = models.CharField(max_length=128)
- last_login = models.DateTimeField(blank=True, null=True)
- is_superuser = models.IntegerField()
- class Order(models.Model):
- orderid = models.AutoField(db_column='orderId', primary_key=True)
- orderuserid = models.ForeignKey('User', models.DO_NOTHING,related_name='users', db_column='orderUserId')
- orderamount = models.IntegerField(db_column='orderAmount', blank=True, null=True)
Add Comment
Please, Sign In to add comment