diff --git a/docs/files.rst b/docs/files.rst index 46f739a..790f026 100644 --- a/docs/files.rst +++ b/docs/files.rst @@ -28,6 +28,7 @@ File Schema In JSON, a file share has the following properties:: { + "create_date": "2023-05-20T23:05:31.546561", "file_name": "file.txt", "initialized": true, "locked": false, @@ -43,6 +44,10 @@ In JSON, a file share has the following properties:: - Type - Limits - Description + * - ``create_date`` + - Date + - Time at which this share was created. + - Read-only * - ``file_name`` - String - diff --git a/sachet/server/models.py b/sachet/server/models.py index f2e7cba..deac2cf 100644 --- a/sachet/server/models.py +++ b/sachet/server/models.py @@ -283,6 +283,7 @@ class Share(db.Model): model = self share_id = ma.auto_field(dump_only=True) + create_date = ma.auto_field(dump_only=True) owner_name = ma.auto_field() file_name = ma.auto_field() initialized = ma.auto_field(dump_only=True)