models
A module that contains models of the files package.
Classes
File
: A class that creating the file model.
File
Bases: models.Model
A model representing an uploaded file and its converted version.
Attributes:
Name | Type | Description |
---|---|---|
file_id |
models.UUIDField
|
The id of the file |
html_file |
models.FileField
|
The html file that uploaded for conversion |
pdf_file |
models.FileField
|
The pdf file path that converted |
uploaded_at |
models.DateTimeField
|
The datetime when uploading the file |
converted_at |
models.DateTimeField
|
The datetime when converting the file |
created_at |
models.DateTimeField
|
The datetime when the file is created |
updated_at |
models.DateTimeField
|
The updated datatime when updating the file |
user |
A foreign key to AuthUser model |
Source code in backend/api/files/models.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
Meta
Metaclass for File model.
Attributes:
Name | Type | Description |
---|---|---|
db_table |
str
|
the table name |
Source code in backend/api/files/models.py
30 31 32 33 34 35 36 37 |
|