我有以下表格:
discount table:
id
name
description
amount
discount_exception
id
from_date
to_date
discount_id (foreign key to discount table)
折扣例外表用于存储折扣对用户不可用的日期范围,因此不应显示折扣。请注意,discount和discount_exception之间存在1:M的关系。换句话说,一个折扣可以有很多例外。
现在,我编写SQL的方法是获取所有折扣,然后在数组中循环它们,并查询discount_exception表,以确定每个折扣是否在特定的日期范围内
我的模型如下:
from jsonfield import JSONField
from django.db import models
class user_table(models.Model):
#The Facebook unique user ID
facebook_UUID=models.CharField(max_length=200, unique=True)
#Apple Push Notification token updated by, the logIn API.
#APNS is deleted after if the use
我的问题如下(Im new in Java technologies): I have a Java web application, that is hosted on Linux server, which uses IBM Websphere as web server and WebSeal as proxy server. I need to change the database password, but I我不确定如何在web服务器中配置新的db凭证,以便应用程序可以访问数据库。有谁有主意吗?