// Path: src/main/java/com/jagrosh/giveawaybot/database/Database.java
// public class Database extends DatabaseConnector
// {
//     public final GiveawayManager giveaways;
//     public final GuildSettingsManager settings;
//     public final PremiumManager premium;
//     public final ExpandedGiveawayManager expanded;
//     
//     public Database (String host, String user, String pass) throws SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException
//     {
//         super(host, user, pass);
//         
//         this.giveaways = new GiveawayManager(this);
//         this.settings = new GuildSettingsManager(this);
//         this.premium = new PremiumManager(this);
//         this.expanded = new ExpandedGiveawayManager(this);
//         
//         init();
//     }
//     
//     public boolean databaseCheck()
//     {
//         return this.giveaways.getGiveaways() != null;
//     }
// }


import com.jagrosh.easysql.DataManager;
import com.jagrosh.easysql.SQLColumn;
import com.jagrosh.easysql.columns.LongColumn;
import com.jagrosh.giveawaybot.database.Database;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
/*
 * Copyright 2020 John Grosh (john.a.grosh@gmail.com).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.jagrosh.giveawaybot.database.managers;


/**
 *
 * @author John Grosh (john.a.grosh@gmail.com)
 */
public class ExpandedGiveawayManager extends DataManager
{
    public final static SQLColumn<Long> GIVEAWAY_ID  = new LongColumn("GIVEAWAY_ID",  false, 0L);
    public final static SQLColumn<Long> CHANNEL_ID  = new LongColumn("CHANNEL_ID",  false, 0L);
    public final static SQLColumn<Long> MESSAGE_ID  = new LongColumn("MESSAGE_ID",  false, 0L, true);
    
// Path: src/main/java/com/jagrosh/giveawaybot/database/Database.java
// public class Database extends DatabaseConnector
// {
//     public final GiveawayManager giveaways;
//     public final GuildSettingsManager settings;
//     public final PremiumManager premium;
//     public final ExpandedGiveawayManager expanded;
//     
//     public Database (String host, String user, String pass) throws SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException
//     {
//         super(host, user, pass);
//         
//         this.giveaways = new GiveawayManager(this);
//         this.settings = new GuildSettingsManager(this);
//         this.premium = new PremiumManager(this);
//         this.expanded = new ExpandedGiveawayManager(this);
//         
//         init();
//     }
//     
//     public boolean databaseCheck()
//     {
//         return this.giveaways.getGiveaways() != null;
//     }
// }


// Path: src/main/java/com/jagrosh/giveawaybot/database/managers/ExpandedGiveawayManager.java
import com.jagrosh.easysql.DataManager;
import com.jagrosh.easysql.SQLColumn;
import com.jagrosh.easysql.columns.LongColumn;
import com.jagrosh.giveawaybot.database.Database;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

/*
 * Copyright 2020 John Grosh (john.a.grosh@gmail.com).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.jagrosh.giveawaybot.database.managers;


/**
 *
 * @author John Grosh (john.a.grosh@gmail.com)
 */
public class ExpandedGiveawayManager extends DataManager
{
    public final static SQLColumn<Long> GIVEAWAY_ID  = new LongColumn("GIVEAWAY_ID",  false, 0L);
    public final static SQLColumn<Long> CHANNEL_ID  = new LongColumn("CHANNEL_ID",  false, 0L);
    public final static SQLColumn<Long> MESSAGE_ID  = new LongColumn("MESSAGE_ID",  false, 0L, true);
    
    public ExpandedGiveawayManager(Database connector)