diff --git a/SQL/site_data.sql b/SQL/site_data.sql index 0660565..900809d 100644 --- a/SQL/site_data.sql +++ b/SQL/site_data.sql @@ -87,6 +87,7 @@ CREATE TABLE products ( id SERIAL, product_id VARCHAR(25) UNIQUE REFERENCES products(product_id), details TEXT, + sale_text TEXT, added timestamp without time zone DEFAULT now() ); ALTER TABLE ONLY products_details @@ -94,6 +95,7 @@ CREATE TABLE products ( ALTER TABLE products_details OWNER TO merms_panel; +--- ALTER TABLE products_details ADD sale_text TEXT; INSERT INTO products_details (product_id,details) VALUES( 'A000002', @@ -118,6 +120,13 @@ A Professional Website service utilizing AI tools offers a comprehensive solutio ' ); +UPDATE products_details SET sale_text = +'
+
+Get started for free for 6 months, and add features to your product as needed. cancel anytime +
+
'; + CREATE TABLE members_products ( diff --git a/app/api/routes/routes.py b/app/api/routes/routes.py index be6fd48..13903dc 100644 --- a/app/api/routes/routes.py +++ b/app/api/routes/routes.py @@ -142,6 +142,8 @@ def myproduct_dash(): response = MyProductsService.process_request(data) return response +# /panel/myproduct/subscription + # /panel/account/calendar @api.route("/panel/account/calendar", methods=["POST"]) def mycalendar_dash(): diff --git a/app/api/services/myproduct.py b/app/api/services/myproduct.py index 59ff10d..94f1dd7 100644 --- a/app/api/services/myproduct.py +++ b/app/api/services/myproduct.py @@ -60,6 +60,7 @@ class MyProductsService(BaseService): "myproudct": { "banner": product_data.banner, "description": product_description.details, + "sale_text" : product_description.sale_text, "internal_url": "", "price_text": "90 days free and 3.95/Month", "product_id": product_data.product_id, diff --git a/app/models/products_details.py b/app/models/products_details.py index 285cb82..77da039 100644 --- a/app/models/products_details.py +++ b/app/models/products_details.py @@ -24,7 +24,8 @@ class ProductsDetails(db.Model): ) product_id = db.Column(db.String(25), nullable=False) - details = db.Column(db.String(5000), nullable=False) + details = db.Column(db.String(15000), nullable=False) + sale_text = db.Column(db.String(15000), nullable=True) added = db.Column(db.DateTime(timezone=True), server_default=func.now()) @@ -48,6 +49,7 @@ class ProductsDetails(db.Model): 'id': self.id, 'product_id': self.product_id, 'details': self.details, + 'sale_text':self.sale_text, 'added': self.added }