mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Django project integration
This commit is contained in:
23
frontend/interface/models.py
Normal file
23
frontend/interface/models.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
|
||||
class books(models.Model):
|
||||
"""
|
||||
pyShelfs Book Database class
|
||||
:param title: Book title
|
||||
:param author: Author
|
||||
:param categories: Categories <-- Not implemented
|
||||
:param cover: Cover image BinaryField
|
||||
:param pages: # of pages <-- Not implemented
|
||||
:param progress: Reader percentage <-- Not implented
|
||||
:param file_name: Path to book
|
||||
"""
|
||||
title = models.CharField(max_length=255)
|
||||
author = models.CharField(max_length=255, blank=True)
|
||||
categories = models.CharField(max_length=255, blank=True)
|
||||
cover = models.BinaryField(blank=True, editable=True)
|
||||
pages = models.IntegerField(blank=True)
|
||||
progress = models.IntegerField(blank=True)
|
||||
file_name = models.CharField(max_length=255, blank=False)
|
||||
Reference in New Issue
Block a user