diff --git a/app/models/user.py b/app/models/user.py index a91c815b..50b02197 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -14,7 +14,7 @@ class User(ModelMixin): """ user table definition """ - _tablename_ = "users" + _tablename_ = "users" # fields of the user table id = db.Column(UUID(as_uuid=True), primary_key=True, diff --git a/templates/user/anonymous_user_to_project.html b/templates/user/anonymous_user_to_project.html index 6a66d428..13214fdc 100644 --- a/templates/user/anonymous_user_to_project.html +++ b/templates/user/anonymous_user_to_project.html @@ -70,12 +70,67 @@

Hi there,

Cheers!
Crane Cloud Team

+ + + + +

Connect with us

+ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +

Copyright © 2024 Crane Cloud Limited

+

This email was meant for {{email}}. If you received this email by mistake, please disregard it.
If you have any questions or need further assistance, please contact our support team.

+ + - + - +
@@ -131,5 +186,6 @@

+ + + + Database Full + + + + +
+
+ +

Your Database is FULL!

+ +
+
+

Hello, {{name}}

+

We're writing to inform you that your database has reached its allocated limit. This means you may experience disruptions in your service.

+

This is because:

+
    +
  • You cannot add data in existing projects.
  • +
  • You cannot update data in existing projects.
  • +
  • You can only view data in existing projects.
  • +
+

Please take immediate action to restore service. If you need further assistance, contact our support team.

+
+
+

You can always get more storage by

Purchasing here.

+

Not ready to get more storage?

Delete files to free up space. +

Cheers!
Crane Cloud Team

+
+ + + + +
+ + diff --git a/templates/user/database_usage_reminder.html b/templates/user/database_usage_reminder.html new file mode 100644 index 00000000..73e68bc1 --- /dev/null +++ b/templates/user/database_usage_reminder.html @@ -0,0 +1,151 @@ + + + + + + Database Usage + + + + +
+
+ +

Database Usage Reminder

+
+
+

Hello, {{name}}

+

We've noticed that your database {{database_name}} in the project {{project_name}} is approaching the allocated limit. You have used {{usage_percentage}}% of your {{database_limit}}.

+ +

If you use up your allocated size, the following implications will apply:

+
    +
  • You will not be able to add data in the database.
  • +
  • You will not be able to update data the database.
  • +
  • You will only view data in this database.
  • +
+

If you need further assistance or wish to increase your database limit, please contact our support team.

+
+
+

Remember that you can always get more storage by

Purchasing here.

+

Not ready to get more storage?

Delete files to free up space. +

Best regards,
Crane Cloud Team

+
+ + + +
+ +