from django.contrib.auth.models import AbstractUser
from django.db import models

# Create your models here.

class Dog:
    name = '旺财'

class BaseModel:
    def to_json(self):
        return {key:value for key,value in self.__dict__.items() if key!='_state'}
class BBSUser(AbstractUser):
    # def to_json(self):
    #     return {
    #         'uid':self.uid,
    #         'username':self.username,
    #         'password':self.password
    #     }
    class Meta:
        db_table = 'user'